| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
There is no reason `attributes=` doesn't take `assign_attributes`.
|
| |
|
| |
|
| |
|
|
|
| |
The output of two string attributes is displayed differently in the docs. Standardize the output by always showing it as a comment.
|
|
|
|
|
|
|
|
|
|
| |
```ruby
nil.respond_to?(:stringify_keys) # => false
```
```ruby
include ActiveModel::AttributeAssignment
Object.new.assign_attributes(nil) # => ArgumentError: When assigning attributes, you must pass a hash as an argument.
```
|
| |
|
|
|
|
|
| |
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
|
|
|
|
| |
Add AC::Parameters tests for WhereChain#not
|
|
|
|
|
|
|
|
|
|
| |
The name `ActiveModel::AttributeAssignment::UnknownAttributeError` is
too implementation specific so let's move the constant directly under
the ActiveModel namespace.
Also since this constant used to be under the ActiveRecord namespace, to
make the upgrade path easier, let's avoid raising the former constant
when we deal with this error on the Active Record side.
|
|
|
|
|
| |
Minor style changes across the board. Changed an alias to an explicit
method declaration, since the alias will not be documented otherwise.
|
|
`ActiveModel::AttributesAssignment`
Allows to use it for any object as an includable module.
|