Skip to content

Commit

Permalink
Change conditional check for ckeditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dutil committed Mar 2, 2014
1 parent 9a71b14 commit 12a9840
Showing 1 changed file with 1 addition and 1 deletion.
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 Object.const_defined?("Ckeditor")
can :access, :ckeditor

can :create, Ckeditor::AttachmentFile
Expand Down

0 comments on commit 12a9840

Please sign in to comment.