lib/ckeditor/helpers/controllers.rb in ckeditor-4.0.7 vs lib/ckeditor/helpers/controllers.rb in ckeditor-4.0.8
- old
+ new
@@ -12,10 +12,10 @@
def ckeditor_authorize!
instance_eval &Ckeditor.authorize_with
end
def ckeditor_before_create_asset(asset)
- asset.assetable = ckeditor_current_user if respond_to?(:current_user)
+ asset.assetable = ckeditor_current_user if ckeditor_current_user
return true
end
def ckeditor_pictures_scope(options = {})
ckeditor_filebrowser_scope(options)