Skip to content

Instantly share code, notes, and snippets.

@fabiokr
Created July 11, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiokr/3092265 to your computer and use it in GitHub Desktop.
Save fabiokr/3092265 to your computer and use it in GitHub Desktop.
# IRB
s = Service.new
s.brand
# => nil
s.brand_id = 1
s.brand
# => #<Brand id: 1, name: "Brand 1", active: false, created_at: "2012-07-11 13:24:02", updated_at: "2012-07-11 13:24:02", franchise: false, data: nil, default_payment_gateway_id: 1, tsv: "'1':2 'brand':1", currency: "USD">
s.hardware
# => nil
s.hardware_id = 1
s.hardware
# => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment