Skip to content

Commit 9dd6381

Browse files
committed
minor fixes
1 parent 068e568 commit 9dd6381

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Regardless the model, you can always redefine/unlock aspect from the helper if y
6464

6565
**Chaining processors**
6666

67-
Maybe you want to chain some custom processors to do amazing effects like crop and then rotate the image. Papercrop will add its processor in last place unless you declare it in the attachment definition
67+
Maybe you want to chain some custom processors to do amazing effects like crop+rotate images. Papercrop will add its processor in last place unless you declare it in the attachment definition
6868

6969
has_attached_file :landscape, :styles => {:big => '2000x1500'},
7070
:processors => [:papercrop, :rotator]

spec/model_extensions/model_extension_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
definitions = retrieve_attachment_definitions_for(Landscape)
9191

9292
definitions[:processed][:processors].should eq([:papercrop, :rotator])
93+
94+
Landscape._update_callbacks.delete_if {|e| e.instance_values['filter'] == :reprocess_to_crop_processed_attachment }
9395
end
9496

9597

0 commit comments

Comments
 (0)