Sha256: 73e1a17f7a35e507e2b1b041790857a15a0026d409aeacbdca4038f6bdcbdbbf

Contents?: true

Size: 281 Bytes

Versions: 14

Compression:

Stored size: 281 Bytes

Contents

class ACLQueryMethodWithLambda < ApplicationController
  attr_accessor :current_user

  access_control :query_method => :acl? do
    allow :editor, :to => [:edit, :update, :destroy]
    allow :viewer, :to => [:index, :show]
    allow :owner,  :of => :foo, :to => :fooize
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
careacademy-acl9-3.4.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
careacademy-acl9-3.3.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-3.2.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-3.1.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-3.0.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-2.1.2 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-2.1.1 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-2.1.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-2.0.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-1.3.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-1.2.1 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-1.2.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-1.1.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb
acl9-1.0.0 test/dummy/app/controllers/acl_query_method_with_lambda.rb