Sha256: 905a0bf5cb003acc3c912de7ac00bd8abe13f6cc5bf0dfcf9da9457348c0a269
Contents?: true
Size: 354 Bytes
Versions: 4
Compression:
Stored size: 354 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) @foo = Foo.first allow_ay(*args) end end
Version data entries
4 entries across 4 versions & 2 rubygems