test/fixtures/user.rb in composite_primary_keys-11.0.0.rc2 vs test/fixtures/user.rb in composite_primary_keys-11.0.0
- old
+ new
@@ -1,10 +1,10 @@
-class User < ActiveRecord::Base
- has_many :readings
- has_many :articles, :through => :readings
- has_many :comments, :as => :person
- has_many :hacks, :through => :comments, :source => :hack
-
- def find_custom_articles
- articles.where("name = ?", "Article One")
- end
-end
+class User < ActiveRecord::Base
+ has_many :readings
+ has_many :articles, :through => :readings
+ has_many :comments, :as => :person
+ has_many :hacks, :through => :comments, :source => :hack
+
+ def find_custom_articles
+ articles.where("name = ?", "Article One")
+ end
+end