Ticket #6829: inflect_in_initializer_block.diff
| File inflect_in_initializer_block.diff, 1.2 kB (added by dcmanges, 2 years ago) |
|---|
-
railties/environments/environment.rb
old new 41 41 # Make Active Record use UTC-base instead of local time 42 42 # config.active_record.default_timezone = :utc 43 43 44 # Add new inflection rules using the following format 45 # (all these examples are active by default): 46 # Inflector.inflections do |inflect| 47 # inflect.plural /^(ox)$/i, '\1en' 48 # inflect.singular /^(ox)en/i, '\1' 49 # inflect.irregular 'person', 'people' 50 # inflect.uncountable %w( fish sheep ) 51 # end 52 44 53 # See Rails::Configuration for more options 45 54 end 46 55 47 # Add new inflection rules using the following format48 # (all these examples are active by default):49 # Inflector.inflections do |inflect|50 # inflect.plural /^(ox)$/i, '\1en'51 # inflect.singular /^(ox)en/i, '\1'52 # inflect.irregular 'person', 'people'53 # inflect.uncountable %w( fish sheep )54 # end55 56 56 # Add new mime types for use in respond_to blocks: 57 57 # Mime::Type.register "text/richtext", :rtf 58 58 # Mime::Type.register "application/x-mobile", :mobile