Sha256: dadb2bd4f0e1d6be1f78a0c83cda023bb9c26375c8399ce2ec6844fe7dbf30a5

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require 'classnames-rails-view'
module DynamicScaffold
  class Engine < ::Rails::Engine
    config.dynamic_scaffold = ActiveSupport::OrderedOptions.new
    config.dynamic_scaffold.icon_set = :fontawesome

    config.assets.precompile += %w[dynamic_scaffold/*]

    config.after_initialize do |_app|
      if Rails.application.config.dynamic_scaffold.icons.nil?
        require "dynamic_scaffold/icons/#{config.dynamic_scaffold.icon_set}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynamic_scaffold-2.0.1 lib/dynamic_scaffold/engine.rb
dynamic_scaffold-2.0.0 lib/dynamic_scaffold/engine.rb