Module: Tynn::NotFound::InstanceMethods
- Defined in:
- lib/tynn/not_found.rb
Instance Method Summary collapse
-
#call ⇒ Object
:nodoc:.
-
#not_found ⇒ Object
:nodoc:.
Instance Method Details
#call ⇒ Object
:nodoc:
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tynn/not_found.rb', line 4 def call(*) # :nodoc: result = super if result[0] == 404 && result[2].empty? not_found return res.finish else return result end end |
#not_found ⇒ Object
:nodoc:
16 17 |
# File 'lib/tynn/not_found.rb', line 16 def not_found # :nodoc: end |