Refinery::Crud already sets title_attribute and redirect_to_url with the same values.
This commit is contained in:
parent
34fd7b7b89
commit
1af631b501
2 changed files with 1 additions and 4 deletions
|
@ -4,7 +4,6 @@ module Refinery
|
|||
class CategoriesController < ::Refinery::AdminController
|
||||
|
||||
crudify :'refinery/blog/category',
|
||||
:title_attribute => :title,
|
||||
:order => 'title ASC'
|
||||
|
||||
end
|
||||
|
|
|
@ -6,9 +6,7 @@ module Refinery
|
|||
cache_sweeper Refinery::BlogSweeper
|
||||
|
||||
crudify :'refinery/blog/post',
|
||||
:title_attribute => :title,
|
||||
:order => 'published_at DESC',
|
||||
:redirect_to_url => "refinery.blog_admin_posts_path"
|
||||
:order => 'published_at DESC'
|
||||
|
||||
before_filter :find_all_categories,
|
||||
:only => [:new, :edit, :create, :update]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue