Refinery::Crud already sets title_attribute and redirect_to_url with the same values.

This commit is contained in:
Uģis Ozols 2012-02-04 22:01:00 +02:00
parent 34fd7b7b89
commit 1af631b501
2 changed files with 1 additions and 4 deletions

View file

@ -4,7 +4,6 @@ module Refinery
class CategoriesController < ::Refinery::AdminController
crudify :'refinery/blog/category',
:title_attribute => :title,
:order => 'title ASC'
end

View file

@ -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]