Module: Authoraise
- Defined in:
- lib/authoraise.rb,
lib/authoraise/version.rb
Defined Under Namespace
Constant Summary collapse
- Error =
Class.new(RuntimeError)
- VERSION =
"0.1.2"
Class Attribute Summary collapse
-
.strict_mode ⇒ Object
Returns the value of attribute strict_mode.
Instance Method Summary collapse
Class Attribute Details
.strict_mode ⇒ Object
Returns the value of attribute strict_mode.
7 8 9 |
# File 'lib/authoraise.rb', line 7 def strict_mode @strict_mode end |
Instance Method Details
#authorize(options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/authoraise.rb', line 9 def ( = {}, &block) Policy.new(&block).() end |