instance method scope_option_by_controller_path

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

scope_option_by_controller_path(scope)

No documentation comment.

Parameters

scope req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close