Sha256: 05d4ab4f7e583d1732ceb2a82001d1331e8f68575cb4be58b13d5273dcddce8a

Contents?: true

Size: 265 Bytes

Versions: 10

Compression:

Stored size: 265 Bytes

Contents

module Comable
  module RoleOwner
    extend ActiveSupport::Concern

    included do
      extend Enumerize

      enumerize :role, in: %i(
        admin
        reporter
        customer
      ), default: :customer, predicates: true, scope: true
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
comable-core-0.7.1 app/models/concerns/comable/role_owner.rb
comable-core-0.7.0 app/models/concerns/comable/role_owner.rb
comable-core-0.7.0.beta2 app/models/concerns/comable/role_owner.rb
comable-core-0.7.0.beta1 app/models/concerns/comable/role_owner.rb
comable-core-0.6.0 app/models/concerns/comable/role_owner.rb
comable_core-0.5.0 app/models/concerns/comable/role_owner.rb
comable_core-0.4.2 app/models/concerns/comable/role_owner.rb
comable_core-0.4.1 app/models/concerns/comable/role_owner.rb
comable_core-0.4.0 app/models/concerns/comable/role_owner.rb
comable_core-0.3.4 app/models/concerns/comable/role_owner.rb