thoughtbot/paperclip — Issue #631: Upgrading paperclip from 2.4.3 to 2.4.5 causes conditional validations to fail
Author: webmat
Created: 2011-10-21 18:47:14+00:00
State: open

Hey guys,

When upgrading Paperclip, my tests began failing with the following error:

```NoMethodError: undefined method `call' for :live?:Symbol```

The model in question has a boolean field called ```live``` and conditional validations:

class Ad < ActiveRecord::Base
validates_attachment_presence :image, :if => :live?
validates_presence_of :body, :if => :live?
end

Is it possible that Paperclip clobbers the Rails validations?

I'm using Rails 3.1.1 on Ruby 1.8.7.

Thanks!

Mat