Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

model.attribute? accessor doesn't return true when attribute is present #33

Open
jonleighton opened this issue Feb 23, 2017 · 1 comment

Comments

@jonleighton
Copy link
Contributor

Example code:

class Thing < PushType::Node
  field :name, :string
end

t = Thing.new
t.name? # => false, expected

t.name = ""
t.name? # => false, expected

t.name = "thing"
t.name? # => false, should be true
@aaronrussell
Copy link
Contributor

Related to pr #30.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants