Class: Dope::ResourceEpithetingModelHandler
Instance Method Summary
collapse
#model, #prefix, #resources, #to_rack_output
Instance Method Details
#find_resource ⇒ Object
97
98
99
100
101
102
103
|
# File 'lib/dope/core/handler.rb', line 97
def find_resource
params = ctx['derailleur.params'].dup
params.delete(:splat)
found = resources.find do |r|
resource.epithet_resource_match_params?(r, params, label, prefix)
end
end
|
#label ⇒ Object
89
90
91
|
# File 'lib/dope/core/handler.rb', line 89
def label
object[1]
end
|
#resource ⇒ Object
93
94
95
|
# File 'lib/dope/core/handler.rb', line 93
def resource
object[3]
end
|