Sha256: ac4b28e79524fe16d385d1bc343fdd0b9ae3c5eb4ee8ea1fd22394e058b8edfb

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

module Org
  module Model::Support
    extend ActiveSupport::Concern

    included do
      attribute :name, :string
      attribute :grade, :integer
      attribute :code, :string

      belongs_to :member, optional: true
      belongs_to :department, optional: true
      belongs_to :organ, optional: true
      belongs_to :supporter, class_name: 'Member'

      has_taxons :department
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/models/org/model/support.rb