Sha256: 3a705c7427beffa3a3b76d8ea024569cac80f43f415f47b3d6ff5c503897b9e3

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'spree_core'
require 'solidus_log_viewer/version'

module SolidusLogViewer
  class Engine < Rails::Engine

    config.autoload_paths += %W(#{config.root}/lib)

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
        Rails.env.production? ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_log_viewer-1.0.0 lib/solidus_log_viewer.rb