Sha256: e105e044b3303de90f33cc083a76056aecdbbc43c11f3cae1710addd6ab880cb
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
require 'rails' require 'sunrise-file-upload' module Sunrise module FileUpload class Engine < ::Rails::Engine # Initialize Rack file upload config.app_middleware.use Sunrise::FileUpload::Manager, :paths => "/sunrise/fileupload" initializer "sunrise.fileupload.setup" do ActiveSupport.on_load :active_record do ::ActiveRecord::Base.send :include, Sunrise::FileUpload::ActiveRecord end ActiveSupport.on_load :action_view do ActionView::Base.send :include, Sunrise::FileUpload::ViewHelper ActionView::Helpers::FormBuilder.send :include, Sunrise::FileUpload::FormBuilder end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunrise-file-upload-0.2.0 | lib/sunrise/file_upload/engine.rb |