Sha256: 227281c2ad7b63f6ba5fc4e81ad4b2e0c0b9a2df9248259957677217d0918169
Contents?: true
Size: 251 Bytes
Versions: 14
Compression:
Stored size: 251 Bytes
Contents
class ACLObjectsHash < ApplicationController access_control :allowed?, :filter => false do allow :owner, :of => :foo end def allow @foo = nil head allowed?( :foo => Foo.find_by_id(params[:user_id]) ) ? :ok : :unauthorized end end
Version data entries
14 entries across 14 versions & 2 rubygems