aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
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/models
parent8b1fd448316a69d4849ff47d9948364dbbbc4db1 (diff)
downloadrefinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.gz
refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.tar.bz2
refinerycms-blog-97101633ca5f0a94560d18adc0df41ca8f60eed7.zip
Consistent whitespace.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/blog/comment_mailer.rb2
-rw-r--r--app/models/blog_category.rb8
-rw-r--r--app/models/blog_comment.rb2
3 files changed, 6 insertions, 6 deletions
diff --git a/app/models/blog/comment_mailer.rb b/app/models/blog/comment_mailer.rb
index dac526d..acef313 100644
--- a/app/models/blog/comment_mailer.rb
+++ b/app/models/blog/comment_mailer.rb
@@ -1 +1 @@
-require File.expand_path('../../../mailers/blog/comment_mailer', __FILE__) \ No newline at end of file
+require File.expand_path('../../../mailers/blog/comment_mailer', __FILE__)
diff --git a/app/models/blog_category.rb b/app/models/blog_category.rb
index c78a7a4..89bff27 100644
--- a/app/models/blog_category.rb
+++ b/app/models/blog_category.rb
@@ -8,16 +8,16 @@ class BlogCategory < ActiveRecord::Base
validates_uniqueness_of :title
has_friendly_id :title, :use_slug => true
-
+
# this might be able to be optimised a little more
def post_count
count = 0
-
+
self.posts.each do |p|
count += 1 if p.live?
end
-
+
count
end
-
+
end
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb
index 7a4af50..63f9731 100644
--- a/app/models/blog_comment.rb
+++ b/app/models/blog_comment.rb
@@ -119,4 +119,4 @@ class BlogComment < ActiveRecord::Base
end
end
-end \ No newline at end of file
+end