method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Translator
new(object, object_name, method_and_value, scope:) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/tags/translator.rb, line 7
        def initialize(object, object_name, method_and_value, scope))
          @object_name = object_name.gsub(/\[(.*)_attributes\]\[\d+\]/, '.\1')
          @method_and_value = method_and_value
          @scope = scope
          @model = object.respond_to?(:to_model) ? object.to_model : nil
        end
Register or log in to add new notes.