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