aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/refinery
diff options
context:
space:
mode:
authorJamie Winsor <jamie@enmasse.com>2011-09-19 18:57:17 -0700
committerJamie Winsor <jamie@enmasse.com>2011-09-19 18:58:31 -0700
commit1b51e2343d477d2065c016d77ef73d527cb37b0e (patch)
tree863d62228de1f2e3b45e44bd7a618c60664630e6 /app/helpers/refinery
parent362088d0272d6d61824b0539e201356cf9219dc0 (diff)
downloadrefinerycms-blog-1b51e2343d477d2065c016d77ef73d527cb37b0e.tar.gz
refinerycms-blog-1b51e2343d477d2065c016d77ef73d527cb37b0e.tar.bz2
refinerycms-blog-1b51e2343d477d2065c016d77ef73d527cb37b0e.zip
setting indentation to 'rails way' for protected and private classes
Diffstat (limited to 'app/helpers/refinery')
-rw-r--r--app/helpers/refinery/blog/controller_helper.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/app/helpers/refinery/blog/controller_helper.rb b/app/helpers/refinery/blog/controller_helper.rb
index 2b2add4..74a189b 100644
--- a/app/helpers/refinery/blog/controller_helper.rb
+++ b/app/helpers/refinery/blog/controller_helper.rb
@@ -4,27 +4,27 @@ module Refinery
protected
- def find_blog_post
- unless (@blog_post = Refinery::BlogPost.find(params[:id])).try(:live?)
- if refinery_user? and current_user.authorized_plugins.include?("refinerycms_blog")
- @blog_post = Refinery::BlogPost.find(params[:id])
- else
- error_404
+ def find_blog_post
+ unless (@blog_post = Refinery::BlogPost.find(params[:id])).try(:live?)
+ if refinery_user? and current_user.authorized_plugins.include?("refinerycms_blog")
+ @blog_post = Refinery::BlogPost.find(params[:id])
+ else
+ error_404
+ end
end
end
- end
-
- def find_all_blog_posts
- @blog_posts = Refinery::BlogPost.live.includes(:comments, :categories).page(params[:page])
- end
-
- def find_tags
- @tags = Refinery::BlogPost.tag_counts_on(:tags)
- end
- def find_all_blog_categories
- @blog_categories = Refinery::BlogCategory.all
- end
+ def find_all_blog_posts
+ @blog_posts = Refinery::BlogPost.live.includes(:comments, :categories).page(params[:page])
+ end
+
+ def find_tags
+ @tags = Refinery::BlogPost.tag_counts_on(:tags)
+ end
+
+ def find_all_blog_categories
+ @blog_categories = Refinery::BlogCategory.all
+ end
end
end
end