Skip to content

Commit

Permalink
Merge pull request teeparham#8 from PerfectlyNormal/patch-1
Browse files Browse the repository at this point in the history
Add arguments to `post_process_styles` method to be compatible with Paperclip v2.3.9 and older.
  • Loading branch information
y8 committed Jan 25, 2012
2 parents e02548b + 5109e02 commit b4d86b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paperclip-meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def save

# If model has #{name}_meta column we getting sizes of processed
# thumbnails and saving it to #{name}_meta column.
def post_process_styles
original_post_process_styles
def post_process_styles(*style_args)
method(:original_post_process_styles).arity == 0 ? original_post_process_styles : original_post_process_styles(*style_args)

if instance.respond_to?(:"#{name}_meta=")
meta = {}
Expand Down

0 comments on commit b4d86b8

Please sign in to comment.