aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/post.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-11-06 19:05:42 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-11-06 19:05:42 +0000
commitc8dd66fdcdc2170982fea8a1782c1728f79e3d41 (patch)
treebd7c1141fe7c23511080661cb723894858a2c3cd /activerecord/test/fixtures/post.rb
parent0073a759f14c406316062ef6e27f1de5f9ad6cdc (diff)
downloadrails-c8dd66fdcdc2170982fea8a1782c1728f79e3d41.tar.gz
rails-c8dd66fdcdc2170982fea8a1782c1728f79e3d41.tar.bz2
rails-c8dd66fdcdc2170982fea8a1782c1728f79e3d41.zip
Made association extensions use simpler block syntax
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/post.rb')
-rw-r--r--activerecord/test/fixtures/post.rb8
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