lib/paperclip/schema.rb in kt-paperclip-6.3.0 vs lib/paperclip/schema.rb in kt-paperclip-6.4.0

- old
+ new

@@ -24,11 +24,11 @@ options = attachment_names.extract_options! attachment_names.each do |attachment_name| COLUMNS.each_pair do |column_name, column_type| column_options = options.merge(options[column_name.to_sym] || {}) - add_column(table_name, "#{attachment_name}_#{column_name}", column_type, column_options) + add_column(table_name, "#{attachment_name}_#{column_name}", column_type, **column_options) end end end def remove_attachment(table_name, *attachment_names) @@ -53,10 +53,10 @@ def attachment(*attachment_names) options = attachment_names.extract_options! attachment_names.each do |attachment_name| COLUMNS.each_pair do |column_name, column_type| column_options = options.merge(options[column_name.to_sym] || {}) - column("#{attachment_name}_#{column_name}", column_type, column_options) + column("#{attachment_name}_#{column_name}", column_type, **column_options) end end end def has_attached_file(*attachment_names)