Skip to content

Commit

Permalink
Content type validation message was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed May 15, 2009
1 parent 93b116e commit 2649720
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/paperclip.rb
Expand Up @@ -301,6 +301,7 @@ def validates_attachment_presence name, options = {}
# re-validation after the instance has been reloaded will always succeed.
def validates_attachment_content_type name, options = {}
attachment_definitions[name][:validations] << [:content_type, {:content_type => options[:content_type],
:message => options[:message],
:if => options[:if],
:unless => options[:unless]}]
end
Expand Down

0 comments on commit 2649720

Please sign in to comment.