lib/generators/ckeditor/templates/base/dragonfly/initializer.rb in ckeditor-3.7.1 vs lib/generators/ckeditor/templates/base/dragonfly/initializer.rb in ckeditor-3.7.2

- old
+ new

@@ -9,18 +9,18 @@ # Define the ckeditor_file_accessor macro. app.define_macro(ActiveRecord::Base, :ckeditor_file_accessor) if defined?(ActiveRecord::Base) app.define_macro_on_include(Mongoid::Document, :ckeditor_file_accessor) if defined?(Mongoid::Document) app.configure do |c| - # Store files in public/system/ckeditor_assets. This is not + # Store files in public/uploads/ckeditor. This is not # mandatory and the files don't even have to be stored under # public. If not storing under public then set server_root to nil. - c.datastore.root_path = Rails.root.join("public", "system", "ckeditor_assets", Rails.env).to_s + c.datastore.root_path = Rails.root.join("public", "uploads", "ckeditor", Rails.env).to_s c.datastore.server_root = Rails.root.join("public").to_s # Accept asset requests on /ckeditor_assets. Again, this is not # mandatory. Just be sure to include :job somewhere. - c.url_format = "/ckeditor_assets/:job/:basename.:format" + c.url_format = "/uploads/ckeditor/:job/:basename.:format" end # Insert our Dragonfly "app" into the stack. Rails.application.middleware.insert_after Rack::Cache, Dragonfly::Middleware, :ckeditor