setting indentation to 'rails way' for protected and private classes

This commit is contained in:
Jamie Winsor 2011-09-19 18:57:17 -07:00
parent 362088d027
commit 1b51e2343d
2 changed files with 21 additions and 21 deletions

View file

@ -9,9 +9,9 @@ module Refinery
protected protected
def find_page def find_page
@page = Refinery::Page.find_by_link_url("/blog") @page = Refinery::Page.find_by_link_url("/blog")
end end
end end
end end
end end

View file

@ -4,27 +4,27 @@ module Refinery
protected protected
def find_blog_post def find_blog_post
unless (@blog_post = Refinery::BlogPost.find(params[:id])).try(:live?) unless (@blog_post = Refinery::BlogPost.find(params[:id])).try(:live?)
if refinery_user? and current_user.authorized_plugins.include?("refinerycms_blog") if refinery_user? and current_user.authorized_plugins.include?("refinerycms_blog")
@blog_post = Refinery::BlogPost.find(params[:id]) @blog_post = Refinery::BlogPost.find(params[:id])
else else
error_404 error_404
end
end end
end end
end
def find_all_blog_posts def find_all_blog_posts
@blog_posts = Refinery::BlogPost.live.includes(:comments, :categories).page(params[:page]) @blog_posts = Refinery::BlogPost.live.includes(:comments, :categories).page(params[:page])
end end
def find_tags def find_tags
@tags = Refinery::BlogPost.tag_counts_on(:tags) @tags = Refinery::BlogPost.tag_counts_on(:tags)
end end
def find_all_blog_categories def find_all_blog_categories
@blog_categories = Refinery::BlogCategory.all @blog_categories = Refinery::BlogCategory.all
end end
end end
end end
end end