code cleanup

This commit is contained in:
Andrew Brown 2018-09-16 22:18:53 -05:00
parent 27edbf5131
commit 754ba9dc12
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,11 @@
if f.object.respond_to?(field.name.to_sym)
value = f.object.send(field.name.to_sym)
else
value = field.attribute_values.find_by(user: f.object.user, entity_type: f.object.class.name, entity_id: f.object.id)
value = field.attribute_values.find_by(
user: f.object.user,
entity_type: f.object.class.name,
entity_id: f.object.id
)
end
%>

View File

@ -24,7 +24,7 @@ namespace :datafill do
skintone: COLORS.sample,
fave_color: COLORS.sample,
)
character.change_events.update_all(user_id: owner.id)
#character.change_events.update_all(user_id: owner.id)
end
puts
puts "Done."