Sha256: c1fabd466f6b9b488ff1fd599426dd22ff7ef53e37f1527360dfd16708c7e32e

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

module EducodeSales
  class BusinessClazzChange < ApplicationRecord
    belongs_to :business
    validates :clazz_changed, uniqueness: { message: '已存在' }



    def self.clazz_changes_value
      {
        '1' => ['a-x', 'b-x', 'c-x'],
        '2' => ['b-a', 'c-a', 'd-a'],
        '3' => ['a-x'],
        '4' => ['a-x', 'b-x'],
        '5' => ['a-x', 'b-x', 'c-x'],
        '6' => ['b-a'],
        '7' => ['b-a', 'c-a'],
        '8' => ['b-a', 'c-a', 'd-a']
      }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
educode_sales-0.9.40 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.39 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.38 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.37 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.36 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.35 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.34 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.33 app/models/educode_sales/business_clazz_change.rb
educode_sales-0.9.32 app/models/educode_sales/business_clazz_change.rb