diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-07-25 12:10:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 12:10:16 -0400 |
commit | ab8847c92092a57df6433f4fc72682074359531f (patch) | |
tree | 821417bb11fb41dc95fbd5c529960fb63d033a64 /activesupport | |
parent | c02f3578c1e4896de9e6ca56b23a491f2ed677d8 (diff) | |
parent | 40cfbae94adf67f229a887358740aa65351012dc (diff) | |
download | rails-ab8847c92092a57df6433f4fc72682074359531f.tar.gz rails-ab8847c92092a57df6433f4fc72682074359531f.tar.bz2 rails-ab8847c92092a57df6433f4fc72682074359531f.zip |
Merge pull request #33432 from damireh/patch-1
Update with_options.rb [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/with_options.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/with_options.rb b/activesupport/lib/active_support/core_ext/object/with_options.rb index 2838fd76be..1d46add6e0 100644 --- a/activesupport/lib/active_support/core_ext/object/with_options.rb +++ b/activesupport/lib/active_support/core_ext/object/with_options.rb @@ -68,7 +68,7 @@ class Object # You can access these methods using the class name instead: # # class Phone < ActiveRecord::Base - # enum phone_number_type: [home: 0, office: 1, mobile: 2] + # enum phone_number_type: { home: 0, office: 1, mobile: 2 } # # with_options presence: true do # validates :phone_number_type, inclusion: { in: Phone.phone_number_types.keys } |