Module: Taro::Rails::RouteFinder
- Defined in:
- lib/taro/rails/route_finder.rb
Class Method Summary collapse
Class Method Details
.call(controller_class:, action_name:) ⇒ Object
3 4 5 6 |
# File 'lib/taro/rails/route_finder.rb', line 3 def call(controller_class:, action_name:) endpoint = "#{controller_class.controller_path}##{action_name}" cache[endpoint] || [] end |
.clear_cache ⇒ Object
8 9 10 |
# File 'lib/taro/rails/route_finder.rb', line 8 def clear_cache @cache = nil end |