You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paperclip Plugin
I have a model with validates_attachment_presence on the attached
file. validates_attachment_presence is being called I have verified
that. The model always passes validation even if i don't check the
asset field explicitly.
Maybe I am doing this wrong, but here is the spec that fails
it "should not be valid without an asset" do
@asset.attributes = valid_attributes.except(:asset)
@asset.valid?
@asset.should have(1).error_on(:asset)
end