Sha256: 52bed51ceaf0803d69e57a341991f015b07bc6eb0c0c5d4ef75366a4c3fad57f

Contents?: true

Size: 884 Bytes

Versions: 16

Compression:

Stored size: 884 Bytes

Contents

# frozen_string_literal: true

# Engines are run as gems, not really using bundler
# Therefore, we need to require stuff manually
require 'rubygems'
require 'coffee_script'
require 'haml'
require 'sass-rails'
require 'compass'
require 'compass-rails'
require 'jquery-rails'
require 'jquery-ui-rails'

# Rails 5 only
require 'compass-blueprint'

require 'susy'
require 'quby/range_categories'
require 'quby/pdf_renderer'

module Quby
  class Engine < Rails::Engine
    isolate_namespace Quby

    initializer "QubyEngine precompile hook" do |app|
      app.config.assets.precompile += ["quby/*.gif", "quby/*.png", "quby/*.jpg", "quby/*.jpeg"]
      app.config.assets.precompile += ["quby/application.css", "quby/print.css", "quby/dialog.css"]
      app.config.assets.precompile += ["quby/application.js", "quby/answers.js", "quby/disable_keys.js", "quby/printer.js"]
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
quby-5.4.0 lib/quby/engine.rb
quby-5.3.1 lib/quby/engine.rb
quby-5.3.0 lib/quby/engine.rb
quby-5.2.0 lib/quby/engine.rb
quby-5.1.3 lib/quby/engine.rb
quby-5.1.2 lib/quby/engine.rb
quby-5.1.1 lib/quby/engine.rb
quby-5.1.0 lib/quby/engine.rb
quby-5.0.5 lib/quby/engine.rb
quby-5.0.4 lib/quby/engine.rb
quby-5.0.3 lib/quby/engine.rb
quby-5.0.2 lib/quby/engine.rb
quby-5.0.1 lib/quby/engine.rb
quby-5.0.0 lib/quby/engine.rb
quby-5.0.0.pre4 lib/quby/engine.rb
quby-5.0.0.pre3 lib/quby/engine.rb