Sha256: 9fcd187b7c3193fb99d60f4a3f3ace8285d66913c04ce9299e5e179c74201178

Contents?: true

Size: 722 Bytes

Versions: 16

Compression:

Stored size: 722 Bytes

Contents

module Marty
  class Engine < ::Rails::Engine
    isolate_namespace Marty

    # eager load paths instead of autoload paths
    config.eager_load_paths += ['lib', 'other'].map do |dir|
      File.expand_path("../../../#{dir}", __FILE__)
    end

    # generators add rspec tests
    config.generators do |g|
      g.test_framework :rspec, view_specs: false
    end

    config.assets.precompile += [
      'marty/application.js',
      'marty/cable.js',
      'marty/application.css',
      'marty/dark_mode.css'
    ]

    config.action_cable.disable_request_forgery_protection = true
    # Can be overriden by config/cable.yml in Rails app
    ActionCable.server.config.cable ||= { 'adapter' => 'postgresql' }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
marty-14.3.0 lib/marty/engine.rb
marty-14.0.0 lib/marty/engine.rb
marty-13.0.2 lib/marty/engine.rb
marty-11.0.0 lib/marty/engine.rb
marty-10.0.3 lib/marty/engine.rb
marty-10.0.2 lib/marty/engine.rb
marty-10.0.0 lib/marty/engine.rb
marty-9.5.1 lib/marty/engine.rb
marty-9.5.0 lib/marty/engine.rb
marty-9.3.3 lib/marty/engine.rb
marty-9.3.2 lib/marty/engine.rb
marty-9.3.0 lib/marty/engine.rb
marty-8.5.0 lib/marty/engine.rb
marty-8.4.1 lib/marty/engine.rb
marty-8.3.1 lib/marty/engine.rb
marty-8.2.0 lib/marty/engine.rb