application.rb revision 3005ac92eb4a1fffe8e3bf2a2ea572b3ac67c46c
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # If you precompile assets before deploying to production, use this line
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi Bundler.require(*Rails.groups(:assets => %w(development test)))
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # If you want your assets lazily compiled in production, use this line
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Bundler.require(:default, :assets, Rails.env)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Settings in config/environments/* take precedence over those specified here.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Application configuration should go into files in config/initializers
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # -- all .rb files in that directory are automatically loaded.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Custom directories with classes and modules you want to be autoloadable.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi config.autoload_paths += %W(#{config.root}/lib)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Only load the plugins named here, in the order given (default is alphabetical).
a5ba96715d4ef264c43d4f187251de491ba198c0KATOH Yasufumi # :all can be used as a placeholder for all plugins not explicitly named.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Activate observers that should always be running.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # config.time_zone = 'Central Time (US & Canada)'
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Configure the default encoding used in templates for Ruby 1.9.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Configure sensitive parameters which will be filtered from the log file.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Use SQL instead of Active Record's schema dumper when creating the database.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # This is necessary if your schema can't be completely dumped by the schema dumper,
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # like if you have constraints or database-specific column types
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Enforce whitelist mode for mass assignment.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # This will create an empty whitelist of attributes available for mass-assignment for all models
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # parameters by using an attr_accessible or attr_protected declaration.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi config.active_record.whitelist_attributes = true
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi # Version of your assets, change this if you want to expire all your assets