Sha256: fa86fbd2938d70b49cabba0b0e2abb69c8cc1f9cb926b8754a77b05fa0448f92

Contents?: true

Size: 383 Bytes

Versions: 120

Compression:

Stored size: 383 Bytes

Contents

module EgovUtils
  module UserUtils
    class Role

      class_attribute :role_name
      self.role_name = nil

      def self.roles
        @@roles ||= {}
      end

      def self.find(name)
        roles[name]
      end

      def self.add(name)
        roles[name] = self
        self.role_name = name
      end

      def define_abilities(ability)
      end

    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
egov_utils-1.4.1 lib/egov_utils/user_utils/role.rb
egov_utils-1.4.0 lib/egov_utils/user_utils/role.rb
egov_utils-1.3.0 lib/egov_utils/user_utils/role.rb
egov_utils-1.2.4 lib/egov_utils/user_utils/role.rb
egov_utils-1.2.3 lib/egov_utils/user_utils/role.rb
egov_utils-1.2.2 lib/egov_utils/user_utils/role.rb
egov_utils-1.2.1 lib/egov_utils/user_utils/role.rb
egov_utils-1.2.0 lib/egov_utils/user_utils/role.rb
egov_utils-1.1.1 lib/egov_utils/user_utils/role.rb
egov_utils-1.1.0 lib/egov_utils/user_utils/role.rb
egov_utils-1.0.3 lib/egov_utils/user_utils/role.rb
egov_utils-1.0.2 lib/egov_utils/user_utils/role.rb
egov_utils-1.0.1 lib/egov_utils/user_utils/role.rb
egov_utils-1.0.0 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.5 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.4 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.3 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.2 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.1 lib/egov_utils/user_utils/role.rb
egov_utils-0.7.0 lib/egov_utils/user_utils/role.rb