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.5.0.alpha16 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha15 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha14 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha13 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha12 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha11 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha10 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha9 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha8 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha7 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha6 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha5 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha4 lib/egov_utils/user_utils/role.rb
egov_utils-1.4.5 lib/egov_utils/user_utils/role.rb
egov_utils-1.4.4 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha3 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha2 lib/egov_utils/user_utils/role.rb
egov_utils-1.5.0.alpha1 lib/egov_utils/user_utils/role.rb
egov_utils-1.4.3 lib/egov_utils/user_utils/role.rb
egov_utils-1.4.2 lib/egov_utils/user_utils/role.rb