Class: Dope::ResourceNestingModelHandler

Inherits:
ResourceModelHandler show all
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_resourceObject



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

#identObject



77
78
79
# File 'lib/dope/core/handler.rb', line 77

def ident
  object[1]
end