Sha256: 2da0eb8f4fd03ee15e510ff46d795149331a9bd4df4f02bad88c536a48459e87

Contents?: true

Size: 290 Bytes

Versions: 45

Compression:

Stored size: 290 Bytes

Contents

module RoleAuthorization
  module Rules
    module ClassMethods
      def define(rule_name, &block)
        RoleAuthorization::Mapper.send(:define_method, rule_name) do |*args|
          add_to_rules(rule_name, *args, &block)
        end
      end
    end
    extend ClassMethods
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
role_authorization-0.4.5 lib/role_authorization/rules.rb
role_authorization-0.4.4 lib/role_authorization/rules.rb
role_authorization-0.4.3 lib/role_authorization/rules.rb
role_authorization-0.4.2 lib/role_authorization/rules.rb
role_authorization-0.4.1 lib/role_authorization/rules.rb
role_authorization-0.4.0 lib/role_authorization/rules.rb
role_authorization-0.3.9 lib/role_authorization/rules.rb
role_authorization-0.3.8 lib/role_authorization/rules.rb
role_authorization-0.3.7 lib/role_authorization/rules.rb
role_authorization-0.3.6 lib/role_authorization/rules.rb
role_authorization-0.3.5 lib/role_authorization/rules.rb
role_authorization-0.3.4 lib/role_authorization/rules.rb
role_authorization-0.3.3 lib/role_authorization/rules.rb
role_authorization-0.3.2 lib/role_authorization/rules.rb
role_authorization-0.3.1 lib/role_authorization/rules.rb
role_authorization-0.3.0 lib/role_authorization/rules.rb
role_authorization-0.2.8 lib/role_authorization/rules.rb
role_authorization-0.2.7 lib/role_authorization/rules.rb
role_authorization-0.2.6 lib/role_authorization/rules.rb
role_authorization-0.2.5 lib/role_authorization/rules.rb