Sha256: 03efbf9f5637045eb008dba439ba3199f52534cbc79abbb24540ed4683a9be74
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true unless File.respond_to?(:exists?) class File def self.exists?(*args, **kwargs, &block) exist?(*args, **kwargs, &block) end end class Dir def self.exists?(*args, **kwargs, &block) exist?(*args, **kwargs, &block) end end end # 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
quby-5.6.5 | lib/quby/engine.rb |
quby-5.6.3 | lib/quby/engine.rb |
quby-5.6.2 | lib/quby/engine.rb |
quby-5.6.1 | lib/quby/engine.rb |
quby-5.6.0 | lib/quby/engine.rb |
quby-5.5.0 | lib/quby/engine.rb |