diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-23 14:34:27 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-23 14:34:27 +0200 |
commit | 2028b57bf3cd1f6384b8fbed12689f73283caf43 (patch) | |
tree | 712436e163909b27b36119c0cdc5566942289674 /activerecord/test | |
parent | 0e189cb3df7899bd99697a40b9e5f6316299ac04 (diff) | |
parent | ad5c1a39346d559f26c11c2399117491a3d81c0b (diff) | |
download | rails-2028b57bf3cd1f6384b8fbed12689f73283caf43.tar.gz rails-2028b57bf3cd1f6384b8fbed12689f73283caf43.tar.bz2 rails-2028b57bf3cd1f6384b8fbed12689f73283caf43.zip |
Merge pull request #20999 from robin850/enum-prefix-suffix
Rename the enum_prefix and enum_suffix options to _prefix and _suffix
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/models/book.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb index 24bfe47bbf..1927191393 100644 --- a/activerecord/test/models/book.rb +++ b/activerecord/test/models/book.rb @@ -10,10 +10,10 @@ class Book < ActiveRecord::Base enum status: [:proposed, :written, :published] enum read_status: {unread: 0, reading: 2, read: 3} enum nullable_status: [:single, :married] - enum language: [:english, :spanish, :french], enum_prefix: :in - enum author_visibility: [:visible, :invisible], enum_prefix: true - enum illustrator_visibility: [:visible, :invisible], enum_prefix: true - enum font_size: [:small, :medium, :large], enum_prefix: :with, enum_suffix: true + enum language: [:english, :spanish, :french], _prefix: :in + enum author_visibility: [:visible, :invisible], _prefix: true + enum illustrator_visibility: [:visible, :invisible], _prefix: true + enum font_size: [:small, :medium, :large], _prefix: :with, _suffix: true def published! super |