Sha256: a635121ade52620f1b5a18ab1a5c14044456f109018f7b39faa5e9ccdff037d8

Contents?: true

Size: 229 Bytes

Versions: 37

Compression:

Stored size: 229 Bytes

Contents

module DiscoApp::Concerns::PlanCode
  extend ActiveSupport::Concern

  included do

    belongs_to :plan

    enum status: [:available, :unavailable]

    validates_presence_of :code
    validates_presence_of :amount

  end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
disco_app-0.8.8 app/models/disco_app/concerns/plan_code.rb
disco_app-0.8.9 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.1 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.2 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.3 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.4 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.5 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.6 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.7 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.8 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.9 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.10 app/models/disco_app/concerns/plan_code.rb
disco_app-0.9.11 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.0 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.1 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.2 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.3 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.4 app/models/disco_app/concerns/plan_code.rb
disco_app-0.10.5 app/models/disco_app/concerns/plan_code.rb