diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-04 22:01:00 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-04 22:01:00 +0200 |
commit | 1af631b501bbd8457d114805f729e8af59edeeee (patch) | |
tree | 2fa2d70a6cbfb7ab85e2aab2c3fbe75657b04a04 /app | |
parent | 34fd7b7b89da669b09cbd910cea109ff106bd85f (diff) | |
download | refinerycms-blog-1af631b501bbd8457d114805f729e8af59edeeee.tar.gz refinerycms-blog-1af631b501bbd8457d114805f729e8af59edeeee.tar.bz2 refinerycms-blog-1af631b501bbd8457d114805f729e8af59edeeee.zip |
Refinery::Crud already sets title_attribute and redirect_to_url with the same values.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/refinery/blog/admin/categories_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/refinery/blog/admin/categories_controller.rb b/app/controllers/refinery/blog/admin/categories_controller.rb index cbde1cc..0a3b7b9 100644 --- a/app/controllers/refinery/blog/admin/categories_controller.rb +++ b/app/controllers/refinery/blog/admin/categories_controller.rb @@ -4,7 +4,6 @@ module Refinery class CategoriesController < ::Refinery::AdminController crudify :'refinery/blog/category', - :title_attribute => :title, :order => 'title ASC' end diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index 5b50c75..f307a74 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -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] |