Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7786

Show
Ignore:
Timestamp:
10/08/07 01:22:56 (1 year ago)
Author:
bitsweat
Message:

Move custom inflections example so available before route generation. Closes #6829.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-2-stable/railties/CHANGELOG

    r7740 r7786  
     1*SVN* 
     2 
     3* Move custom inflections example so available before route generation.  #6829 [dcmanges, Nate, piotrb] 
     4 
     5 
    16*1.2.4* (October 4th, 2007) 
    27 
  • branches/1-2-stable/railties/environments/environment.rb

    r5620 r7786  
    11# Be sure to restart your web server when you modify this file. 
    22 
    3 # Uncomment below to force Rails into production mode when  
     3# Uncomment below to force Rails into production mode when 
    44# you don't control web/app server and can't set it the proper way 
    55# ENV['RAILS_ENV'] ||= 'production' 
     
    1313Rails::Initializer.run do |config| 
    1414  # Settings in config/environments/* take precedence over those specified here 
    15    
     15 
    1616  # Skip frameworks you're not going to use (only works if using vendor/rails) 
    1717  # config.frameworks -= [ :action_web_service, :action_mailer ] 
     
    2323  # config.load_paths += %W( #{RAILS_ROOT}/extras ) 
    2424 
    25   # Force all environments to use the same logger level  
     25  # Force all environments to use the same logger level 
    2626  # (by default production uses :info, the others :debug) 
    2727  # config.log_level = :debug 
     
    3232 
    3333  # Use SQL instead of Active Record's schema dumper when creating the test database. 
    34   # This is necessary if your schema can't be completely dumped by the schema dumper,  
     34  # This is necessary if your schema can't be completely dumped by the schema dumper, 
    3535  # like if you have constraints or database-specific column types 
    3636  # config.active_record.schema_format = :sql 
     
    4141  # Make Active Record use UTC-base instead of local time 
    4242  # 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 
    4453  # See Rails::Configuration for more options 
    4554end 
    46  
    47 # Add new inflection rules using the following format  
    48 # (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 # end 
    5555 
    5656# Add new mime types for use in respond_to blocks: