Class: Dope::ResourceNestingModelHandler
- Inherits:
-
ResourceModelHandler
- Object
- Derailleur::Handler
- ResourceModelHandler
- Dope::ResourceNestingModelHandler
- Defined in:
- lib/dope/core/handler.rb
Instance Method Summary collapse
Methods inherited from ResourceModelHandler
#model, #prefix, #resources, #to_rack_output
Instance Method Details
#find_resource ⇒ Object
81 82 83 84 85 |
# File 'lib/dope/core/handler.rb', line 81 def find_resource params = ctx['derailleur.params'].dup params.delete(:splat) resources.find{|r| r.match_params?(params, ident, prefix)} end |
#ident ⇒ Object
77 78 79 |
# File 'lib/dope/core/handler.rb', line 77 def ident object[1] end |