Sha256: b66474bf276d1a1dc4f10b4714327d19700c13977de883d3d737f90f938f5f66

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

module SolidusComments
  class Engine < Rails::Engine
    engine_name 'solidus_comments'

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

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_comments-1.0.1 lib/solidus_comments/engine.rb
solidus_comments-1.0.0 lib/solidus_comments/engine.rb