diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-06-27 22:29:31 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-06-27 22:29:31 +0300 |
commit | 8b1d10fab257d8a0ce7230f27a530dd7f8140acc (patch) | |
tree | a51bffee0dd234df9c823257d9c7bf3a02c92fd6 /app/controllers | |
parent | fc97c846689d545a2b3844c8f9810eda129c8803 (diff) | |
download | refinerycms-blog-8b1d10fab257d8a0ce7230f27a530dd7f8140acc.tar.gz refinerycms-blog-8b1d10fab257d8a0ce7230f27a530dd7f8140acc.tar.bz2 refinerycms-blog-8b1d10fab257d8a0ce7230f27a530dd7f8140acc.zip |
Use shorter syntax of render where possible.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/refinery/blog/admin/comments_controller.rb | 6 | ||||
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/refinery/blog/posts_controller.rb | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/refinery/blog/admin/comments_controller.rb b/app/controllers/refinery/blog/admin/comments_controller.rb index 8565b28..18246ee 100644 --- a/app/controllers/refinery/blog/admin/comments_controller.rb +++ b/app/controllers/refinery/blog/admin/comments_controller.rb @@ -12,14 +12,14 @@ module Refinery def index @comments = Refinery::Blog::Comment.unmoderated.page(params[:page]) - render :action => 'index' + render :index end def approved unless params[:id].present? @comments = Refinery::Blog::Comment.approved.page(params[:page]) - render :action => 'index' + render :index else @comment = Refinery::Blog::Comment.find(params[:id]) @comment.approve! @@ -33,7 +33,7 @@ module Refinery unless params[:id].present? @comments = Refinery::Blog::Comment.rejected.page(params[:page]) - render :action => 'index' + render :index else @comment = Refinery::Blog::Comment.find(params[:id]) @comment.reject! diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index e48c00d..cbde2f8 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -66,7 +66,7 @@ module Refinery end else unless request.xhr? - render :action => 'new' + render :new else render :partial => "/refinery/admin/error_messages", :locals => { diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index bb242fd..bd579c4 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -51,7 +51,7 @@ module Refinery :anchor => "comment-#{@comment.to_param}") end else - render :action => 'show' + render :show end end |