Skip to content

Commit

Permalink
Fixes for ckeditor abilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dutil committed Mar 2, 2014
1 parent fe0c436 commit 0fd250b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Spree Drop Ship will support several other Spree extensions being used by scopin
Some extensions that can be used in conjunction with Spree Drop Ship:

* spree_digital
* spree_editor
* spree_editor (assumes use of ckeditor & you should delete the generated models & initializer in your app to use spree_editors copies)
* spree_group_pricing
* spree_marketplace
* spree_related_products
Expand Down
2 changes: 1 addition & 1 deletion app/models/ckeditor/asset_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if defined?(Ckeditor::Asset)
if defined?(Ckeditor)
Ckeditor::Asset.class_eval do
belongs_to :supplier, class_name: 'Spree::Supplier'
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/spree/supplier_ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(user)
can :create, Spree::Supplier
end

if defined?(Ckeditor::AttachmentFile) && defined?(Ckeditor::Picture)
if defined?(Ckeditor)
can :access, :ckeditor

can :create, Ckeditor::AttachmentFile
Expand Down

0 comments on commit 0fd250b

Please sign in to comment.