Skip to content

Instantly share code, notes, and snippets.

@avidas
Created December 29, 2017 18:11
Show Gist options
  • Save avidas/f23561723f50c47ff6a17fb28ce102ee to your computer and use it in GitHub Desktop.
Save avidas/f23561723f50c47ff6a17fb28ce102ee to your computer and use it in GitHub Desktop.
begin
TenantService.switch_to_rest_of_world_tenant
account = Account.find_by_short_code 'HUJW06'
pr = account.primary_reservations.active.find_by(description: '02-15')
pr.update_attributes(price: 4300.0)
end
@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