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.9.6 lib/role_authorization/rules.rb
role_authorization-0.9.5 lib/role_authorization/rules.rb
role_authorization-0.9.4 lib/role_authorization/rules.rb
role_authorization-0.9.3 lib/role_authorization/rules.rb
role_authorization-0.9.2 lib/role_authorization/rules.rb
role_authorization-0.9.1 lib/role_authorization/rules.rb
role_authorization-0.9.0 lib/role_authorization/rules.rb
role_authorization-0.6.2 lib/role_authorization/rules.rb
role_authorization-0.6.1 lib/role_authorization/rules.rb
role_authorization-0.6.0 lib/role_authorization/rules.rb
role_authorization-0.5.9 lib/role_authorization/rules.rb
role_authorization-0.5.8 lib/role_authorization/rules.rb
role_authorization-0.5.7 lib/role_authorization/rules.rb
role_authorization-0.5.6 lib/role_authorization/rules.rb
role_authorization-0.5.5 lib/role_authorization/rules.rb
role_authorization-0.5.4 lib/role_authorization/rules.rb
role_authorization-0.5.3 lib/role_authorization/rules.rb
role_authorization-0.5.2 lib/role_authorization/rules.rb
role_authorization-0.5.1 lib/role_authorization/rules.rb
role_authorization-0.5.0 lib/role_authorization/rules.rb