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.2.9 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.8 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.7 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.6 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.5 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.4 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.3 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.2 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.1 lib/egov_utils/user_utils/role.rb
egov_utils-0.2.0 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.37 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.36 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.35 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.33 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.32 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.31 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.30 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.29 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.28 lib/egov_utils/user_utils/role.rb
egov_utils-0.1.27 lib/egov_utils/user_utils/role.rb