require File.expand_path('../boot', __FILE__)
require 'yaml'
require 'csv'

APPLICATION = YAML.load(File.read(File.expand_path('../application.yml', __FILE__)))

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)

module Oss
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'
    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de
    config.middleware.use Rack::Deflater
    config.i18n.enforce_available_locales = false
    config.generators do |g|
        g.stylesheets false
        g.javascripts false
        #g.orm :mongoid
        g.orm :active_record
    end
    config.autoload_paths += %W(#{config.root}/lib)
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.perform_deliveries = true
    config.action_mailer.smtp_settings = {
       :address => "smtp.mailgun.org",
       :domain => "wavespot.mailgun.org",
       :port => 587,
       :authentication => :plain,
       :user_name => "postmaster@wavespot.mailgun.org",
       :password=> "8fcu3yj5t0u3",
       :tls=>false
    }
  end
end
