diff options
Diffstat (limited to 'activerecord/test/fixtures/post.rb')
-rw-r--r-- | activerecord/test/fixtures/post.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb index 1a34823ca0..1697f0a599 100644 --- a/activerecord/test/fixtures/post.rb +++ b/activerecord/test/fixtures/post.rb @@ -1,15 +1,15 @@ class Post < ActiveRecord::Base - belongs_to :author, :extend => Module.new { + belongs_to :author do def greeting "hello" end - } + end - has_many :comments, :order => "body", :extend => Module.new { + has_many :comments, :order => "body" do def find_most_recent find(:first, :order => "id DESC") end - } + end has_one :very_special_comment has_many :special_comments |