method

compute_attribute

compute_attribute(inner_error)
private

No documentation available.

# File activerecord/lib/active_record/associations/nested_error.rb, line 18
        def compute_attribute(inner_error)
          association_name = association.reflection.name

          if association.collection? && index_errors_setting && index
            "#{association_name}[#{index}].#{inner_error.attribute}".to_sym
          else
            "#{association_name}.#{inner_error.attribute}".to_sym
          end
        end