Sha256: ecf0226cb4d1d18e019fa46441f06d9667f92de52c06c9f3c421d26f0e1f4bfc

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

class Rails::Plugin
  class Loader
    def register_plugin_as_loaded_with_engine_assets(plugin)
      register_plugin_as_loaded_without_engine_assets(plugin)

      if(plugin.engine? && File.exist?(public_dir = File.join(plugin.directory, 'public')))
        EngineAssets::PublicLocator.paths << public_dir
      end
    end
    alias_method_chain :register_plugin_as_loaded, :engine_assets
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
engine-assets-0.3.3 lib/engine_assets/extensions/rails/plugins.rb
engine-assets-0.3.2 lib/engine_assets/extensions/rails/plugins.rb
engine-assets-0.3.1 lib/engine_assets/extensions/rails/plugins.rb
engine-assets-0.3.0 lib/engine_assets/extensions/rails/plugins.rb
engine-assets-0.2.1 lib/engine_assets/extensions/rails/plugin.rb