diff options
author | Daniel Colson <danieljamescolson@gmail.com> | 2019-04-22 19:48:17 -0400 |
---|---|---|
committer | Daniel Colson <danieljamescolson@gmail.com> | 2019-04-22 19:48:17 -0400 |
commit | e7a28c39908768acc1b8c836ab53af546c58c0c0 (patch) | |
tree | 7b88d851223afe09a23e0b10ec11ae67a472e5ca /activerecord/test/migrations/empty/.keep | |
parent | 1b2efe5a111941d57edbaf2be7f3a94eb02b5f9d (diff) | |
download | rails-e7a28c39908768acc1b8c836ab53af546c58c0c0.tar.gz rails-e7a28c39908768acc1b8c836ab53af546c58c0c0.tar.bz2 rails-e7a28c39908768acc1b8c836ab53af546c58c0c0.zip |
Add attribute_names to ActiveModel::Attributes
This adds `.attribute_names` and `#attribute_names` to
`ActiveModel::Attributes` along the same lines as the corresponding
methods in `ActiveRecord::AttributeMethods` (see
[`.attribute_names`][class_method] and
[`#attribute_names`][instance_method].
While I was here I also added documentation for '#attributes', which I
added in 043ce35b186. The whole class is still `#:nodoc:` so I don't
think this will have any effect for now.
[class_method]: https://github.com/rails/rails/blob/cc834db1d0815744cfa173813c05d928e008e167/activerecord/lib/active_record/attribute_methods.rb#L154-L160
[instance_method]: https://github.com/rails/rails/blob/cc834db1d0815744cfa173813c05d928e008e167/activerecord/lib/active_record/attribute_methods.rb#L299-L301
Diffstat (limited to 'activerecord/test/migrations/empty/.keep')
0 files changed, 0 insertions, 0 deletions