Class: DuckRecord::NullMutationTracker

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#any_changes?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 90

def any_changes?(*)
  false
end

#change_to_attribute(_) ⇒ Object



87
88
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 87

def change_to_attribute(_)
end

#changed?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 94

def changed?(*)
  false
end

#changed_in_place?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 98

def changed_in_place?(*)
  false
end

#changed_valuesObject



79
80
81
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 79

def changed_values(*)
  {}
end

#changesObject



83
84
85
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 83

def changes(*)
  {}
end

#forget_changeObject



102
103
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 102

def forget_change(*)
end

#original_valueObject



105
106
# File 'lib/duck_record/attribute_mutation_tracker.rb', line 105

def original_value(*)
end