Sha256: 7054ca711e0f5aff6c461d4113a53edc72ce2dc21cb01ee10e36be413627f19e
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
class Winemaker < ActiveRecord::Base include Fae::Concerns::Models::Base belongs_to :wine, touch: true acts_as_list add_new_at: :top default_scope { order(:position) } has_one :winemaker_image, as: :imageable, class_name: '::Fae::Image', dependent: :destroy accepts_nested_attributes_for :winemaker_image, allow_destroy: true def table_image # used as a custom method for the table view, displays an image in the table based on some logic winemaker_image if name.present? end def fae_display_field name end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-1.2.4 | spec/dummy/app/models/winemaker.rb |
fae-rails-1.2.3 | spec/dummy/app/models/winemaker.rb |
fae-rails-1.2.2 | spec/dummy/app/models/winemaker.rb |