method

initialize_dup

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::Dirty
initialize_dup(other) public

No documentation

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

Hide source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 44
      def initialize_dup(other) # :nodoc:
        super
        @attributes = self.class._default_attributes.map do |attr|
          attr.with_value_from_user(@attributes.fetch_value(attr.name))
        end
        @mutation_tracker = nil
      end
Register or log in to add new notes.