diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2013-11-02 12:01:31 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2013-11-02 12:01:31 -0700 |
commit | db41eb8a6ea88b854bf5cd11070ea4245e1639c5 (patch) | |
tree | 7ce7308e9b1a46bb61ece82f43af1338eb64d501 /activerecord/lib/active_record/base.rb | |
parent | deaf285824fa7d2aaf24619eefdb0893c0069bc0 (diff) | |
download | rails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.tar.gz rails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.tar.bz2 rails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.zip |
Added ActiveRecord::Base#enum for declaring enum attributes where the values map to integers in the database, but can be queried by name
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 04e3dd49e7..69a9eabefb 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -291,6 +291,7 @@ module ActiveRecord #:nodoc: extend Translation extend DynamicMatchers extend Explain + extend Enum extend Delegation::DelegateCache include Persistence |