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-0.1.26 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.23 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.19 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.18 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.17 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.16 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.15 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.14 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.13 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.12 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.11 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.10 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.9 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.8 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.7 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.6 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.5 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.4 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.1 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.0 lib/egov_utils/user_utils/role.rb