Sha256: 38f15d130a842dd8ab4f4d600923e3b41a459690073303a1af60dfadf5130820
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true module Scrapbook # :nodoc: class Engine < ::Rails::Engine isolate_namespace Scrapbook config.scrapbook = ActiveSupport::OrderedOptions.new config.scrapbook.paths ||= [] config.scrapbook.precompile_assets = config.scrapbook.precompile_assets || false initializer 'scrapbook.configuration' do |app| settings = app.config.scrapbook settings.paths << Rails.root.join('scrapbook') if settings.paths.empty? end initializer 'scrapbook.assets' do |app| if app.config.scrapbook.precompile_assets && app.config.respond_to?(:assets) app.config.assets.precompile.concat %w[ scrapbook/application.css ] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrapbook-0.2.1 | lib/scrapbook/engine.rb |