Class: ActiveModel::NullMutationTracker

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
activemodel/lib/active_model/attribute_mutation_tracker.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from Singleton

#duplicable?

Instance Method Details

#any_changes?Boolean

Returns:

  • (Boolean)


174
175
176
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 174

def any_changes?
  false
end

#change_to_attribute(attr_name) ⇒ Object



171
172
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 171

def change_to_attribute(attr_name)
end

#changed?(attr_name) ⇒ Boolean

Returns:

  • (Boolean)


178
179
180
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 178

def changed?(attr_name, **)
  false
end

#changed_attribute_namesObject



159
160
161
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 159

def changed_attribute_names
  []
end

#changed_in_place?(attr_name) ⇒ Boolean

Returns:

  • (Boolean)


182
183
184
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 182

def changed_in_place?(attr_name)
  false
end

#changed_valuesObject



163
164
165
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 163

def changed_values
  {}
end

#changesObject



167
168
169
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 167

def changes
  {}
end

#original_value(attr_name) ⇒ Object



186
187
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 186

def original_value(attr_name)
end