aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/post.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-03 10:52:05 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-03 10:52:05 +0000
commitabc895b82829657d34f4902ce0cf04f0682bab63 (patch)
treedf164ff14acac26c22a3205331a5ae4898f05d03 /activerecord/test/fixtures/post.rb
parent17e5035bc566815b8aa8c192fec97a781f726938 (diff)
downloadrails-abc895b82829657d34f4902ce0cf04f0682bab63.tar.gz
rails-abc895b82829657d34f4902ce0cf04f0682bab63.tar.bz2
rails-abc895b82829657d34f4902ce0cf04f0682bab63.zip
Added new Base.find API and deprecated find_all, find_first. Added preliminary support for eager loading of associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/post.rb')
-rw-r--r--activerecord/test/fixtures/post.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb
new file mode 100644
index 0000000000..1fd78b8343
--- /dev/null
+++ b/activerecord/test/fixtures/post.rb
@@ -0,0 +1,4 @@
+class Post < ActiveRecord::Base
+ has_many :comments
+ has_one :author
+end \ No newline at end of file