aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-11-23 09:34:11 +1300
committerPhilip Arndt <parndt@gmail.com>2010-11-23 09:34:11 +1300
commit97101633ca5f0a94560d18adc0df41ca8f60eed7 (patch)
treec2414815b5476c3982647095af1625d459506af6 /app/controllers
parent8b1fd448316a69d4849ff47d9948364dbbbc4db1 (diff)
downloadrefinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.gz
refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.bz2
refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.zip
Consistent whitespace.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/blog/categories_controller.rb4
-rw-r--r--app/controllers/blog/posts_controller.rb8
-rw-r--r--app/controllers/blog_controller.rb4
3 files changed, 8 insertions, 8 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)
diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb
index 2efeaa4..f51d5bb 100644
--- a/app/controllers/blog_controller.rb
+++ b/app/controllers/blog_controller.rb
@@ -1,5 +1,5 @@
class BlogController < ApplicationController
-
+
helper :blog_posts
before_filter :find_page, :find_all_blog_categories
@@ -13,4 +13,4 @@ protected
@blog_categories = BlogCategory.all
end
-end \ No newline at end of file
+end