Created
June 8, 2011 12:41
-
-
Save edzhelyov/1014334 to your computer and use it in GitHub Desktop.
Strange behavior for sequel model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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