aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-02-23 00:29:46 -0800
committerPete Higgins <pete@peterhiggins.org>2012-02-23 00:29:46 -0800
commitd353cd556cd63da1b60600bb8a6ab38ca7f09f1c (patch)
treecbcc5471c9114b47206ddfb38bb81183c5fc1065 /app
parent5eaad8997fa5d8e63f331ec5846f029506a6e309 (diff)
downloadrefinerycms-blog-d353cd556cd63da1b60600bb8a6ab38ca7f09f1c.tar.gz
refinerycms-blog-d353cd556cd63da1b60600bb8a6ab38ca7f09f1c.tar.bz2
refinerycms-blog-d353cd556cd63da1b60600bb8a6ab38ca7f09f1c.zip
Don't need to specify class names here.
Diffstat (limited to 'app')
-rw-r--r--app/models/refinery/blog/comment.rb4
-rw-r--r--app/models/refinery/blog/post.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/refinery/blog/comment.rb b/app/models/refinery/blog/comment.rb
index 9187306..3675e46 100644
--- a/app/models/refinery/blog/comment.rb
+++ b/app/models/refinery/blog/comment.rb
@@ -8,7 +8,7 @@ module Refinery
:email_field => :email,
:message_field => :body
- belongs_to :post, :class_name => 'Refinery::Blog::Post', :foreign_key => 'blog_post_id'
+ belongs_to :post, :foreign_key => 'blog_post_id'
acts_as_indexed :fields => [:name, :email, :message]
@@ -132,4 +132,4 @@ module Refinery
end
end
-end \ No newline at end of file
+end
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb
index 6873243..75911b9 100644
--- a/app/models/refinery/blog/post.rb
+++ b/app/models/refinery/blog/post.rb
@@ -11,7 +11,7 @@ module Refinery
belongs_to :author, :class_name => 'Refinery::User', :foreign_key => :user_id, :readonly => true
- has_many :comments, :class_name => 'Refinery::Blog::Comment', :dependent => :destroy, :foreign_key => :blog_post_id
+ has_many :comments, :dependent => :destroy, :foreign_key => :blog_post_id
acts_as_taggable
has_many :categorizations, :dependent => :destroy, :foreign_key => :blog_post_id