Sha256: c96e5e69b354e50d342a2ce9909760ae14476bb1082a179e2b33616efd7121a2
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
module MegaBar class Textbox < 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 5 end def controller_name 'mega_bar/textboxes' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | app/models/mega_bar/textbox.rb |
mega_bar-0.5.1 | app/models/mega_bar/textbox.rb |