]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/test/fixtures/user.rb
Normalise line endings.
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / fixtures / user.rb
1 class User < ActiveRecord::Base
2   has_many :readings
3   has_many :articles, :through => :readings
4   has_many :comments, :as => :person
5   has_many :hacks, :through => :comments, :source => :hack
6   
7   def find_custom_articles
8     articles.find(:all, :conditions => ["name = ?", "Article One"])
9   end
10 end