spree-contrib / spree_editor

Rich text editor for Spree with Image and File uploading in-place.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
112 stars 183 forks source link

uninitialized constant SpreeEditor::Config #33

Closed christoph-buente closed 11 years ago

christoph-buente commented 11 years ago

I want to try the spree_editor. Bundle and install works fine. But when i want to set my config with an initializer like stated int the readme i get this error message:

uninitialized constant SpreeEditor::Config

My initializer looks like this:

require 'spree_editor' SpreeEditor::Config.tap do |config| config.ids = "product_description taxon_description page_body event_body" end

I cannot find the class SpreeEditor in the gem sources. Any help is appreciated.

JDutil commented 11 years ago

I just barely added the ability to use an initializer yesterday w/ 9ad47a126168f3366ec24e7c96ac353c5163d542 you should make sure that your using the latest from the master branch.

bundle update spree_editor

If you still have trouble please post your Gemfile.lock contents.

christoph-buente commented 11 years ago

Hehe, bad timing :) I'm using the 1-3-stable branch. The master requires spree 2.0.

Could you cherry-pick this commit?

JDutil commented 11 years ago

Just pushed a 1-3-stable branch for you with it.

christoph-buente commented 11 years ago

You're awesome, thx a lot. Works like a charm.