Skip to content

Instantly share code, notes, and snippets.

@rdavila
Created October 18, 2012 17:21
Show Gist options
  • Save rdavila/3913477 to your computer and use it in GitHub Desktop.
Save rdavila/3913477 to your computer and use it in GitHub Desktop.
def console_prices=(values)
values.each do |console_id, price|
self.classifications.build(console_id: console_id, price: price) if price.present?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment