Skip to content

Instantly share code, notes, and snippets.

@samdec
Created August 8, 2011 20:04
Show Gist options
  • Save samdec/1132593 to your computer and use it in GitHub Desktop.
Save samdec/1132593 to your computer and use it in GitHub Desktop.
ruby-1.9.2 :016 > Facebooker.superclass
=> ActiveRecord::Base
ruby-1.9.2 :017 > f = Facebooker.new
=> #<Facebooker id: nil, category: nil, name: nil, last_fetched_at: nil, created_at: nil, updated_at: nil>
ruby-1.9.2 :018 > f.id = 5
=> 5
ruby-1.9.2 :019 > f.id
=> nil
ruby-1.9.2 :020 > f.name = "Test"
=> "Test"
ruby-1.9.2 :021 > f.name
=> "Test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment