Sha256: cd08341798e5e5ba17936273cdec9967efe3ade5682a249011f85cf2b9a4b0af
Contents?: true
Size: 220 Bytes
Versions: 1
Compression:
Stored size: 220 Bytes
Contents
module RestfulAcl module Helper def allowed?(&block) options = UrlParser.new(current_user, &block).options_hash access = RestfulAcl::Base.new(options) yield if access.allowed? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restful_acl-3.0.0 | lib/restful_acl/helper.rb |