mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #33432 from damireh/patch-1
Update with_options.rb [ci skip]
This commit is contained in:
commit
ab8847c920
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class Object
|
||||||
# You can access these methods using the class name instead:
|
# You can access these methods using the class name instead:
|
||||||
#
|
#
|
||||||
# class Phone < ActiveRecord::Base
|
# 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
|
# with_options presence: true do
|
||||||
# validates :phone_number_type, inclusion: { in: Phone.phone_number_types.keys }
|
# validates :phone_number_type, inclusion: { in: Phone.phone_number_types.keys }
|
||||||
|
|
Loading…
Reference in a new issue