application.rb revision 65973250066fc6f4f1e3e0d8c67ffd9604020e34
70N/Arequire File.expand_path('../boot', __FILE__)
70N/A
286N/Arequire 'rails/all'
70N/A
70N/Aif defined?(Bundler)
70N/A # If you precompile assets before deploying to production, use this line
70N/A Bundler.require(*Rails.groups(:assets => %w(development test)))
70N/A # If you want your assets lazily compiled in production, use this line
70N/A # Bundler.require(:default, :assets, Rails.env)
70N/Aend
70N/A
70N/Amodule Ontohub
70N/A class Application < Rails::Application
70N/A # Settings in config/environments/* take precedence over those specified here.
70N/A # Application configuration should go into files in config/initializers
70N/A # -- all .rb files in that directory are automatically loaded.
70N/A
70N/A # Custom directories with classes and modules you want to be autoloadable.
70N/A config.autoload_paths += %W(#{config.root}/lib)
70N/A
70N/A # HACK https://gist.github.com/1184816
70N/A if defined? Compass
70N/A config.sass.load_paths << Compass::Frameworks['blueprint'].stylesheets_directory
70N/A config.sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory
70N/A end
70N/A
70N/A # Mailer Layout for Devise https://github.com/plataformatec/devise/issues/1671
70N/A config.to_prepare { Devise::Mailer.layout "mailer" }
70N/A
70N/A # Only load the plugins named here, in the order given (default is alphabetical).
542N/A # :all can be used as a placeholder for all plugins not explicitly named.
70N/A # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
70N/A
70N/A # Activate observers that should always be running.
359N/A # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
359N/A
359N/A # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
98N/A # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
321N/A # config.time_zone = 'Central Time (US & Canada)'
493N/A
321N/A # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
213N/A # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
304N/A # config.i18n.default_locale = :de
530N/A
425N/A # Configure the default encoding used in templates for Ruby 1.9.
425N/A config.encoding = "utf-8"
325N/A
493N/A # Configure sensitive parameters which will be filtered from the log file.
536N/A config.filter_parameters += [:password]
456N/A
320N/A # Use SQL instead of Active Record's schema dumper when creating the database.
332N/A # This is necessary if your schema can't be completely dumped by the schema dumper,
501N/A # like if you have constraints or database-specific column types
231N/A config.active_record.schema_format = :sql
523N/A
98N/A # Enforce whitelist mode for mass assignment.
347N/A # This will create an empty whitelist of attributes available for mass-assignment for all models
532N/A # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
525N/A # parameters by using an attr_accessible or attr_protected declaration.
463N/A # config.active_record.whitelist_attributes = true
493N/A
425N/A # Enable the asset pipeline
493N/A config.assets.enabled = true
472N/A
324N/A # Version of your assets, change this if you want to expire all your assets
347N/A config.assets.version = '1.0'
310N/A end
316N/Aend
474N/A