lib/sequel/plugins/touch.rb in sequel-4.43.0 vs lib/sequel/plugins/touch.rb in sequel-4.44.0

- old
+ new

@@ -61,9 +61,16 @@ # are column name symbols. attr_reader :touched_associations Plugins.inherited_instance_variables(self, :@touched_associations=>:dup, :@touch_column=>nil) + # Freeze the touched associations when freezing the model class. + def freeze + @touched_associations.freeze + + super + end + # Add additional associations to be touched. See the :association option # of the Sequel::Plugin::Touch.configure method for the format of the associations # arguments. def touch_associations(*associations) associations.flatten.each do |a|