lib/rails_amp.rb in rails_amp-0.1.9 vs lib/rails_amp.rb in rails_amp-0.2.0

- old
+ new

@@ -77,19 +77,19 @@ def key_to_controller(key) (key.camelcase + 'Controller').constantize end - def target?(controller_name, action_name) - target_actions = target_actions( key_to_controller(controller_name) ) + def target?(controller_path, action_name) + target_actions = target_actions( key_to_controller(controller_path) ) action_name.in?(target_actions) end def amp_format? format == default_format.to_s end - def amp_renderable?(controller_name, action_name) - amp_format? && target?(controller_name, action_name) + def amp_renderable?(controller_path, action_name) + amp_format? && target?(controller_path, action_name) end }) end