lib/s3_relay/model.rb in s3_relay-0.3.1 vs lib/s3_relay/model.rb in s3_relay-0.3.2
- old
+ new
@@ -35,10 +35,10 @@
attr_accessor virtual_attribute
association_method = "associate_#{attribute}"
- after_save association_method
+ after_save association_method.to_sym
define_method association_method do
new_uuids = send(virtual_attribute)
return if new_uuids.blank?