Sha256: 93284825b864882274ea6d60fb15799e6fb76c68cc5e8bc5b6635e2ba1b95117
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
module MegaBar class Radio < ActiveRecord::Base validates_presence_of :field_display_id scope :by_field_display_id, ->(field_display_id) { where(field_display_id: field_display_id)} validates_uniqueness_of :field_display_id def get_model_id 15 end def controller_name 'mega_bar/radios' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | app/models/mega_bar/radio.rb |
mega_bar-0.5.1 | app/models/mega_bar/radio.rb |