Skip to content

Instantly share code, notes, and snippets.

@avidas
Last active December 29, 2017 20:10
Show Gist options
  • Save avidas/b959991f0a4db979548cc542c95cb2e4 to your computer and use it in GitHub Desktop.
Save avidas/b959991f0a4db979548cc542c95cb2e4 to your computer and use it in GitHub Desktop.
begin
TenantService.switch_to_rest_of_world_tenant
account = Account.find_by_short_code '1VHUN0'
pr = account.primary_reservations.active.find_by(description: '03-01')
pr.update_attributes(price: 23400.0)
end
@ianguffy
Copy link

Nitpick: I'd prefer (price: 23_400.0), but good to go as-is 👍

@sagross
Copy link

sagross commented Dec 29, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment