app/controllers/effective/assets_controller.rb in effective_assets-1.6.9 vs app/controllers/effective/assets_controller.rb in effective_assets-1.7.0
- old
+ new
@@ -7,10 +7,10 @@
# iframe
def index # This is the IFRAME modal dialog that is read by CKEDITOR
EffectiveAssets.authorized?(self, :index, Effective::Asset.new(:user_id => current_user.try(:id)))
effective_iframe_uploads = Effective::Attachment.where(box: EffectiveAssets::IFRAME_UPLOADS).pluck(:asset_id)
- @assets = Effective::Asset.where(id: effective_iframe_uploads)
+ @assets = Effective::Asset.where(id: effective_iframe_uploads)
if params[:only] == 'images'
@assets = @assets.images
@file_types = [:jpg, :gif, :png, :bmp, :ico]
elsif params[:only] == 'nonimages'