instance method
scope_option_by_controller_path
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
scope_option_by_controller_path(scope)
No documentation comment.
Parameters
-
scopereq
Source
# File actionpack/lib/abstract_controller/translation.rb, line 58
def scope_option_by_controller_path(scope)
if (scope.is_a?(String) || scope.is_a?(Symbol)) && scope.start_with?(".")
resolved = "#{controller_action_scope}#{scope}"
scope.is_a?(Symbol) ? resolved.to_sym : resolved
else
scope
end
end
Defined in actionpack/lib/abstract_controller/translation.rb line 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Translation