Sha256: b6e2c8813c5feabc5fb063ec0e81cf88ed2d9f0500812c985d114471c09cc818

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

module MegaBar
  class Select < ActiveRecord::Base
    validates_presence_of :field_display_id
    validates_uniqueness_of :field_display_id
    scope :by_field_display_id, ->(field_display_id) { where(field_display_id: field_display_id)}
    def get_model_id
      7
    end
    def controller_name
      'mega_bar/selects'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mega_bar-0.5.2 app/models/mega_bar/select.rb
mega_bar-0.5.1 app/models/mega_bar/select.rb