Sha256: 55663b042779204b6d8665bd3832468036b296e351faca96772876924d22f4d7
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
dir = File.dirname(__FILE__) $LOAD_PATH.unshift(File.join(dir, '..', 'app')) require 'engine-assets' require 'controllers/engine_assets/assets_controller' require 'controllers/engine_assets/javascripts_controller' require 'controllers/engine_assets/stylesheets_controller' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engine-assets-0.2.0 | rails/init.rb |