aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/define_callbacks.rb
diff options
context:
space:
mode:
authorYoshiyuki Kinjo <yskkin@gmail.com>2018-08-31 14:12:53 +0900
committerYoshiyuki Kinjo <yskkin@gmail.com>2018-08-31 15:47:35 +0900
commitae6adf98cc3d6ac085c9c6a4887dad65f3c4be17 (patch)
treeda360fce5980b13d4d0fc5126c198b2a559782fd /activerecord/lib/active_record/define_callbacks.rb
parentd48f4ddfc8dd38b65f7a040c5c9c7d1468114d2d (diff)
downloadrails-ae6adf98cc3d6ac085c9c6a4887dad65f3c4be17.tar.gz
rails-ae6adf98cc3d6ac085c9c6a4887dad65f3c4be17.tar.bz2
rails-ae6adf98cc3d6ac085c9c6a4887dad65f3c4be17.zip
Emit warning for unknown inflection rule when generating model.
For words like "abuse", Rails cannot derive its singular form from plural form "abuses" without defining custom inflection rule. `rails generate model` and its families now emit warning for this case.
Diffstat (limited to 'activerecord/lib/active_record/define_callbacks.rb')
0 files changed, 0 insertions, 0 deletions