Sha256: 6d82fc7b671d594a0e841aa25aed10bd7a33ad1b0aae0096f85e4597314e770f

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 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.assets' do |app|
      if app.config.scrapbook.precompile_assets && app.config.respond_to?(:assets)
        app.config.assets.precompile.push('scrapbook/application.css')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrapbook-0.3.2 lib/scrapbook/engine.rb
scrapbook-0.3.1 lib/scrapbook/engine.rb
scrapbook-0.3.0 lib/scrapbook/engine.rb