Skip to content

Commit

Permalink
Fix arel_attribute deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ody committed Feb 16, 2021
1 parent eb52200 commit 230d993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sneaky-save.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def sneaky_attributes_values
attributes_for_create = send :attributes_for_create, attribute_names
attributes_with_values = send :attributes_with_values, attributes_for_create
attributes_with_values.each_with_object({}) do |attribute_value, hash|
hash[self.class.send(:arel_attribute, attribute_value[0])] = attribute_value[1]
hash[self.class.arel_table[attribute_value[0]]] = attribute_value[1]
end
end

Expand Down

0 comments on commit 230d993

Please sign in to comment.