Update ActiveRecord#attribute_present? to work as documented #3535

Merged
merged 1 commit into from Nov 6, 2011

Projects

None yet

2 participants

@jmazzi
Contributor
jmazzi commented Nov 6, 2011

RIght now attribute_present? returns false for "false" values. Since "false" is a value you can set in the db it should return true when it's set.

"Returns true if the specified attribute has been set by the user or by
a database load and is neither nil nor empty?"

Fixes #1613

@jmazzi jmazzi Update ActiveRecord#attribute_present? to work as documented
"Returns true if the specified attribute has been set by the user or by
a database load and is neither nil nor empty?"

Fixes #1613
c7d2078
@jonleighton jonleighton merged commit 62512b9 into rails:master Nov 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment