Skip to content

Instantly share code, notes, and snippets.

@edzhelyov
Created June 8, 2011 12:41
Show Gist options
  • Save edzhelyov/1014334 to your computer and use it in GitHub Desktop.
Save edzhelyov/1014334 to your computer and use it in GitHub Desktop.
Strange behavior for sequel model
class Laptop < Sequel::Model
end
l = Laptop.new
l.columns
[:id, :hdd, :display]
l.hdd
=> nil
l.display
=> #<Laptop:0x9a17cd8> => nil
# Even when the display column in set it's displayed like #<Laptop:0x9a17cd8> => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment