Method: Innate::Node#try_resolve
- Defined in:
- lib/innate/node.rb
#try_resolve(path) ⇒ Response
Let’s try to find some valid action for given path. Otherwise we dispatch to #action_missing.
287 288 289 290 |
# File 'lib/innate/node.rb', line 287 def try_resolve(path) action = ancestral_trait[:action_cache][[self, path]] ||= resolve(path) action ? action_found(action) : action_missing(path) end |