Sha256: 67d8d3ddc0afebae33ab80db75a72962226be4b5493541f656540756cec7339c

Contents?: true

Size: 1 KB

Versions: 20

Compression:

Stored size: 1 KB

Contents

module Mumuki
  module Laboratory
    class Engine < ::Rails::Engine
      config.generators.stylesheets = false
      config.generators.javascripts = false
      config.generators.test_framework = :rspec

      %w(exercise submission).each do |it|
        config.autoload_paths += %W(#{config.root}/app/models/#{it})
      end

      %w(submittable navigation).each do |it|
        config.autoload_paths += %W(#{config.root}/app/models/concerns/#{it})
      end

      config.assets.precompile += %w(user_shape.png)

      config.autoload_paths += %W(#{config.root}/plugins)
      config.autoload_paths += %W(#{config.root}/app/helpers/concerns)

      config.registration_notification_format = {only: [:id, :name, :email, :image_url]}
      config.action_dispatch.perform_deep_munge = false

      config.status_rendering_verbosity = :standard

      initializer "static assets" do |app|
          app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
      end

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mumuki-laboratory-5.5.0 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.4.0 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.3.0 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.2.1 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.2.0 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.1.1 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.1.0 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.12 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.11 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.10 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.9 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.8 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.7 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.6 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.5 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.4 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.3 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.2 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.1 lib/mumuki/laboratory/engine.rb
mumuki-laboratory-5.0.0 lib/mumuki/laboratory/engine.rb