mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
fixed codeclimate errors
This commit is contained in:
parent
e7e3278267
commit
e0c47cdb35
9 changed files with 13 additions and 18 deletions
|
@ -2,9 +2,7 @@ module ObjectVersionsHelper
|
|||
def attach_existing_fields(version, new_object)
|
||||
version.object_changes.to_h.each do |key, value|
|
||||
method_name = "#{key}=".to_sym
|
||||
if new_object.respond_to?(method_name)
|
||||
new_object.public_send(method_name, event_value(version, value))
|
||||
end
|
||||
new_object.public_send(method_name, event_value(version, value)) if new_object.respond_to?(method_name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue