Sha256: 2f77433623d3c17f5ccb568bec9a1cba34f8754e6cb125c7425cfac0d744bff2

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

module DiscoApp::Concerns::Source

  extend ActiveSupport::Concern

  included do
    has_many :subscriptions, dependent: :restrict_with_exception
    has_many :shops, through: :subscriptions

    validates_presence_of :source
    validates_presence_of :name
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 app/models/disco_app/concerns/source.rb
disco_app-0.18.0 app/models/disco_app/concerns/source.rb
disco_app-0.18.2 app/models/disco_app/concerns/source.rb
disco_app-0.18.3 app/models/disco_app/concerns/source.rb
disco_app-0.18.6 app/models/disco_app/concerns/source.rb
disco_app-0.18.4 app/models/disco_app/concerns/source.rb
disco_app-0.18.1 app/models/disco_app/concerns/source.rb