Sha256: 33add7b3a1cd5fb9d032e63002e373212d388ce446bd7fefeb84f066d87f0cc7

Contents?: true

Size: 410 Bytes

Versions: 174

Compression:

Stored size: 410 Bytes

Contents

ActiveSupport::Inflector.inflections(:en) do |inflect|
  # "_by" is a particularly common suffix for associations in Bullet Train applications (e.g. `created_by`, etc.)
  # but it gets pluralized incorrectly as "_bies". This should fix both Super Scaffolding for those fields and
  # the resulting invocations of the scope validator that are generated by Super Scaffolding.
  inflect.irregular "by", "bys"
end

Version data entries

174 entries across 174 versions & 1 rubygems

Version Path
bullet_train-1.6.26 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.25 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.24 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.23 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.22 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.21 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.20 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.19 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.18 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.17 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.16 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.15 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.14 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.13 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.12 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.11 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.10 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.9 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.8 config/initializers/concerns/inflections_base.rb
bullet_train-1.6.7 config/initializers/concerns/inflections_base.rb