Sha256: eec22b749e152c98ce3cbd3f1fb226091c110d3b7b32189779f13ed725db175d

Contents?: true

Size: 509 Bytes

Versions: 57

Compression:

Stored size: 509 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'

module Cmor
  module Rbac
    module Configuration
      def configure
        yield self
      end

      mattr_accessor(:user_class_name) { 'User' }
      mattr_accessor(:user_factory_name) { :user }

      mattr_accessor(:default_permissions_filename) { -> { Rails.root.join('config', 'rbac.yml') }  }

      def self.user_class
        user_class_name.constantize
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
cmor_rbac-0.0.60.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.59.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.58.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.57.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.56.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.55.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.54.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.53.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.52.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.51.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.50.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.49.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.48.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.45.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.44.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.43.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.42.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.41.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.40.pre lib/cmor/rbac/configuration.rb
cmor_rbac-0.0.39.pre lib/cmor/rbac/configuration.rb