aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/refinery
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-01-09 10:38:26 +1300
committerPhilip Arndt <parndt@gmail.com>2012-01-17 16:56:23 +1300
commitb3a25c1b686d205fc6b8b409a8f90059ae6b934d (patch)
treeb0590a4c85422d000a22423114849fd1679392dd /app/controllers/refinery
parent2a2fcca64972bc2fb6a3530395366fb2ade42303 (diff)
downloadrefinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.gz
refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.bz2
refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.zip
Restructured part of the project to Refinery::Blog::Admin not Refinery::Admin::Blog
Diffstat (limited to 'app/controllers/refinery')
-rw-r--r--app/controllers/refinery/blog/admin/categories_controller.rb (renamed from app/controllers/refinery/admin/blog/categories_controller.rb)4
-rw-r--r--app/controllers/refinery/blog/admin/comments_controller.rb (renamed from app/controllers/refinery/admin/blog/comments_controller.rb)4
-rw-r--r--app/controllers/refinery/blog/admin/posts_controller.rb (renamed from app/controllers/refinery/admin/blog/posts_controller.rb)8
-rw-r--r--app/controllers/refinery/blog/admin/settings_controller.rb (renamed from app/controllers/refinery/admin/blog/settings_controller.rb)4
4 files changed, 10 insertions, 10 deletions
diff --git a/app/controllers/refinery/admin/blog/categories_controller.rb b/app/controllers/refinery/blog/admin/categories_controller.rb
index 0fe4eec..cbde1cc 100644
--- a/app/controllers/refinery/admin/blog/categories_controller.rb
+++ b/app/controllers/refinery/blog/admin/categories_controller.rb
@@ -1,6 +1,6 @@
module Refinery
- module Admin
- module Blog
+ module Blog
+ module Admin
class CategoriesController < ::Refinery::AdminController
crudify :'refinery/blog/category',
diff --git a/app/controllers/refinery/admin/blog/comments_controller.rb b/app/controllers/refinery/blog/admin/comments_controller.rb
index 6c1417e..3128e97 100644
--- a/app/controllers/refinery/admin/blog/comments_controller.rb
+++ b/app/controllers/refinery/blog/admin/comments_controller.rb
@@ -1,6 +1,6 @@
module Refinery
- module Admin
- module Blog
+ module Blog
+ module Admin
class CommentsController < ::Refinery::AdminController
cache_sweeper Refinery::BlogSweeper
diff --git a/app/controllers/refinery/admin/blog/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb
index 4645f3f..04ee663 100644
--- a/app/controllers/refinery/admin/blog/posts_controller.rb
+++ b/app/controllers/refinery/blog/admin/posts_controller.rb
@@ -1,6 +1,6 @@
module Refinery
- module Admin
- module Blog
+ module Blog
+ module Admin
class PostsController < ::Refinery::AdminController
cache_sweeper Refinery::BlogSweeper
@@ -8,7 +8,7 @@ module Refinery
crudify :'refinery/blog/post',
:title_attribute => :title,
:order => 'published_at DESC',
- :redirect_to_url => "main_app.refinery_admin_blog_posts_path"
+ :redirect_to_url => "main_app.refinery_blog_admin_posts_path"
before_filter :find_all_categories,
:only => [:new, :edit, :create, :update]
@@ -54,7 +54,7 @@ module Refinery
unless from_dialog?
unless params[:continue_editing] =~ /true|on|1/
- redirect_back_or_default(main_app.refinery_admin_blog_posts_path)
+ redirect_back_or_default(main_app.refinery_blog_admin_posts_path)
else
unless request.xhr?
redirect_to :back
diff --git a/app/controllers/refinery/admin/blog/settings_controller.rb b/app/controllers/refinery/blog/admin/settings_controller.rb
index ee71393..afa6b2b 100644
--- a/app/controllers/refinery/admin/blog/settings_controller.rb
+++ b/app/controllers/refinery/blog/admin/settings_controller.rb
@@ -1,6 +1,6 @@
module Refinery
- module Admin
- module Blog
+ module Blog
+ module Admin
class SettingsController < ::Refinery::AdminController
def notification_recipients