papermill 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/papermill_controller.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.7
|
@@ -44,7 +44,7 @@ class PapermillController < ApplicationController
|
|
44
44
|
if @asset.save
|
45
45
|
PapermillAsset.find(:all, :conditions => { :assetable_id => @asset.assetable_id, :assetable_type => @asset.assetable_type, :assetable_key => @asset.assetable_key }).each do |asset|
|
46
46
|
asset.destroy unless asset == @asset
|
47
|
-
end if
|
47
|
+
end if !params[:gallery]
|
48
48
|
render :partial => "papermill/asset", :object => @asset, :locals => { :gallery => params[:gallery], :thumbnail_style => params[:thumbnail_style] }
|
49
49
|
else
|
50
50
|
render :update do |page|
|