app/models/concerns/bmc/default_values_concern.rb in bmc-1.4.3 vs app/models/concerns/bmc/default_values_concern.rb in bmc-1.5.0

- old
+ new

@@ -3,10 +3,10 @@ def assign_default_values end def assign_default(attribute, value) - send("#{attribute}=", value) if send(attribute).nil? + send(:"#{attribute}=", value) if send(attribute).nil? end included do after_initialize :assign_default_values, if: :new_record? end