Sha256: 7991c3df53deaed7f32ec39fa1a72f9150ca46cb776be943302516a81a4554bc
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
module Kinney class Image < ActiveRecord::Base attr_accessible :filename, :top_pick, :person_ids has_many :person_images has_many :people, :through => :person_images validates_uniqueness_of :filename validates :filename, :presence => true # This method should now be defined in the image override which is installed as part of the kinney:install generator # def external_url # false # end def self.top_picks where(:top_pick => true) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | app/models/kinney/image.rb |
kinney-0.0.2 | app/models/kinney/image.rb |
kinney-0.0.1 | app/models/kinney/image.rb |