lib/lalala/engine.rb in lalala-4.0.0.dev.157 vs lib/lalala/engine.rb in lalala-4.0.0.dev.160

- old
+ new

@@ -43,14 +43,10 @@ stack.insert_before( 'ActionDispatch::Flash', Lalala::ExtRack::PageLoader) - stack.insert_before( - 'ActionDispatch::Head', - Lalala::ExtRack::MultipleFileUploadSupport) - end initializer "lalala.assets", :group => :assets do |app| ::Sass::Engine::DEFAULT_OPTIONS[:load_paths] << File.expand_path("../../../app/assets/stylesheets", __FILE__) app.config.assets.precompile += %w( lalala/editor-preview.css ) @@ -102,9 +98,15 @@ :include, Lalala::ExtActiveRecord::Assets) end ActiveSupport.on_load :action_controller do - ActionDispatch::Routing::Mapper.send :include, Lalala::Pages::RouteMapper + + ActionDispatch::Routing::Mapper.send( + :include, Lalala::Pages::RouteMapper) + + ActionDispatch::Request.send( + :include, Lalala::ExtActionDispatch::MultiFileUpload) + end end