Sha256: e9d458606f34b55babb755126a1881a97ea8c5561274411f8b52573a5d5ad7ca

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

module MegaBar
  class ModelDisplay < ActiveRecord::Base
    self.table_name = "mega_bar_model_displays"

    belongs_to :models
    scope :by_model, ->(model_id) { where(model_id: model_id) if model_id.present? }
    scope :by_action, ->(action) { where(action: action) if action.present? }

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mega_bar-0.0.1 app/models/mega_bar/model_display.rb