Sha256: 308f05c84b0aad7ce57a313397e6ab4c722efbba3cc1f6ca0f2d903d590bb3be

Contents?: true

Size: 332 Bytes

Versions: 10

Compression:

Stored size: 332 Bytes

Contents

class ACLQueryMethodNamed < ApplicationController
  attr_accessor :current_user

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

  def acl?(*args)
    allow_ay(*args)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
acl9-3.0.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-2.1.2 test/dummy/app/controllers/acl_query_method_named.rb
acl9-2.1.1 test/dummy/app/controllers/acl_query_method_named.rb
acl9-2.1.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-2.0.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-1.3.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-1.2.1 test/dummy/app/controllers/acl_query_method_named.rb
acl9-1.2.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-1.1.0 test/dummy/app/controllers/acl_query_method_named.rb
acl9-1.0.0 test/dummy/app/controllers/acl_query_method_named.rb