Sha256: 6666683824f9340dc272cb449978f9e36271dfbd44c9bafa821f1f15eb3df2e1

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

require 'rails/engine/configuration'

Rails::Engine::Configuration.class_eval do
  def paths_with_decorators
    @paths ||= begin
      paths = paths_without_decorators
      paths.add "app/decorators", :eager_load => true
      paths
    end
  end

  alias_method_chain :paths, :decorators
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_engine_decorators-1.0.0 lib/rails_engine_decorators/engine/configuration.rb
rails_engine_decorators-0.0.1 lib/rails_engine_decorators/engine/configuration.rb