Module: RestfulAcl::Helper
- Defined in:
- lib/restful_acl/helper.rb
Instance Method Summary collapse
Instance Method Details
#allowed?(&block) ⇒ Boolean
4 5 6 7 8 9 |
# File 'lib/restful_acl/helper.rb', line 4 def allowed?(&block) = UrlParser.new(current_user, &block). access = RestfulAcl::Base.new() yield if access.allowed? end |