diff options
author | Philip Arndt <parndt@gmail.com> | 2010-11-23 09:34:11 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-11-23 09:34:11 +1300 |
commit | 97101633ca5f0a94560d18adc0df41ca8f60eed7 (patch) | |
tree | c2414815b5476c3982647095af1625d459506af6 /app/controllers/blog | |
parent | 8b1fd448316a69d4849ff47d9948364dbbbc4db1 (diff) | |
download | refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.gz refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.bz2 refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.zip |
Consistent whitespace.
Diffstat (limited to 'app/controllers/blog')
-rw-r--r-- | app/controllers/blog/categories_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/blog/posts_controller.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/blog/categories_controller.rb b/app/controllers/blog/categories_controller.rb index 71ceec1..4795e99 100644 --- a/app/controllers/blog/categories_controller.rb +++ b/app/controllers/blog/categories_controller.rb @@ -3,5 +3,5 @@ class Blog::CategoriesController < BlogController def show @category = BlogCategory.find(params[:id]) end - -end
\ No newline at end of file + +end diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb index 95ccbbe..8dd8ada 100644 --- a/app/controllers/blog/posts_controller.rb +++ b/app/controllers/blog/posts_controller.rb @@ -1,8 +1,8 @@ class Blog::PostsController < BlogController - + before_filter :find_all_blog_posts, :except => [:archive] before_filter :find_blog_post, :only => [:show, :comment, :update_nav] - + respond_to :html, :js, :rss if Rails.version >= '3.0.0' def index @@ -18,7 +18,7 @@ class Blog::PostsController < BlogController def show @blog_comment = BlogComment.new - + if Rails.version < '3.0.0' # TODO: respond_to block else @@ -55,7 +55,7 @@ class Blog::PostsController < BlogController render :action => 'show' end end - + def archive date = "#{params[:month]}/#{params[:year]}" @archive_date = Time.parse(date) |