Sha256: b56e5fa3be3feef11eec2303e6eee14ceb7bf600c31efb66444421552ff86e2b

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

module ActiveApplication
  class Engine < ::Rails::Engine
    Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder
    Formtastic::Helpers::FormHelper.default_form_class = "form-horizontal"

    if Rails.env.development?
      config.action_mailer.default_url_options = { host: "localhost:3000" }
    elsif Rails.env.test?
      config.action_mailer.default_url_options = { host: "example.com" }
    elsif Rails.env.production?
      config.action_mailer.default_url_options = { host: "example.com" }
    end

    config.after_initialize do |app|
      app.routes.append { match "*path", to: "active_application/public#not_found" }
    end

    config.app_generators do |g|
      g.fixture_replacement :factory_girl, dir: "spec/factories"
      g.helper false
      g.integration_tool :rspec
      g.javascripts false
      g.stylesheets false
      g.test_framework :rspec,
        view_specs: false,
        controller_specs: false,
        routing_specs: false,
        request_specs: false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_application-0.3.1 lib/active_application/engine.rb
active_application-0.3.0 lib/active_application/engine.rb
active_application-0.2.0 lib/active_application/engine.rb
active_application-0.1.0 lib/active_application/engine.rb
active_application-0.0.1 lib/active_application/engine.rb