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.11.0 config/initializers/concerns/inflections_base.rb
bullet_train-1.10.0 config/initializers/concerns/inflections_base.rb
bullet_train-1.9.0 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.5 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.4 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.3 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.2 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.1 config/initializers/concerns/inflections_base.rb
bullet_train-1.8.0 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.23 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.22 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.21 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.20 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.19 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.18 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.17 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.16 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.15 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.14 config/initializers/concerns/inflections_base.rb
bullet_train-1.7.13 config/initializers/concerns/inflections_base.rb