Sha256: 11f1e2abd53d0acfdf3e528f9db90e935d966cdcc80aeff0d9356ac9bdd85c4f

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

require 'paperclip'
require 'rack/raw_upload'
    
module Rich
  class Engine < Rails::Engine
    isolate_namespace Rich

    initializer "rich.add_middleware" do |app|
      app.config.assets.precompile += %w( rich/base.js rich/editor.css )
      app.middleware.use 'Rack::RawUpload', :paths => ['/rich/files']
    end
    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rich-1.1.0 lib/rich/engine.rb
rich-1.0.3 lib/rich/engine.rb
rich-1.0.2 lib/rich/engine.rb
rich-1.0.1 lib/rich/engine.rb
rich-1.0.0 lib/rich/engine.rb
rich-0.0.8 lib/rich/engine.rb
rich-0.0.7 lib/rich/engine.rb
rich-0.0.6 lib/rich/engine.rb