1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Sean Griffin c51f9b61ce Refactor enum to be defined in terms of the attributes API
In addition to cleaning up the implementation, this allows type casting
behavior to be applied consistently everywhere. (#where for example). A
good example of this was the previous need for handling value to key
conversion in the setter, because the number had to be passed to `where`
directly. This is no longer required, since we can just pass the string
along to where. (It's left around for backwards compat)

Fixes #18387
2015-02-11 15:02:36 -07:00
..
active_record Refactor enum to be defined in terms of the attributes API 2015-02-11 15:02:36 -07:00
rails/generators Add Secure Token Generator 2015-01-11 14:42:54 -05:00
active_record.rb Add has_secure_token to Active Record 2015-01-04 11:31:37 -05:00