rails--rails/activerecord/test
Ernie Miller 4f107da4ff Raise MissingAttributeError on query methods
When calling a query method on an attribute that was not selected by
an ActiveRecord query, an ActiveModel::MissingAttributeError is not
raised. Instead, a nil value is returned, which will return false once
cast to boolean.

This is undesirable, as we should not give the impression that we know
the attribute's boolean value when we haven't loaded the attribute's
(possibly) non-boolean value from the database.

This issue is present on versions going back as far as 2.3, at least.
2012-09-08 17:40:01 -04:00
..
active_record/connection_adapters
assets
cases Raise MissingAttributeError on query methods 2012-09-08 17:40:01 -04:00
fixtures
migrations
models
schema
support
.gitignore
config.example.yml
config.rb