aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin/blog/categories_controller.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-07-01 09:14:46 +1200
committerPhilip Arndt <parndt@gmail.com>2011-07-01 09:14:46 +1200
commit7028ef3dddd8559c8e5519431d3529c0c99872cc (patch)
tree6b8aa08e5f8713b85fc1bbf4a2460c001e516822 /app/controllers/admin/blog/categories_controller.rb
parent47a71b309f4fb364449167ddc6ed978b6969e047 (diff)
downloadrefinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.tar.gz
refinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.tar.bz2
refinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.zip
Making use of modules and putting classes under modules.
Diffstat (limited to 'app/controllers/admin/blog/categories_controller.rb')
-rw-r--r--app/controllers/admin/blog/categories_controller.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/controllers/admin/blog/categories_controller.rb b/app/controllers/admin/blog/categories_controller.rb
index fe15a0b..6933c44 100644
--- a/app/controllers/admin/blog/categories_controller.rb
+++ b/app/controllers/admin/blog/categories_controller.rb
@@ -1,7 +1,11 @@
-class Admin::Blog::CategoriesController < Admin::BaseController
+module Admin
+ module Blog
+ class CategoriesController < Admin::BaseController
- crudify :blog_category,
- :title_attribute => :title,
- :order => 'title ASC'
+ crudify :blog_category,
+ :title_attribute => :title,
+ :order => 'title ASC'
+ end
+ end
end