lib/attached.rb in attached-0.3.1 vs lib/attached.rb in attached-0.3.2

- old
+ new

@@ -147,10 +147,10 @@ # validates_attached_extension :avatar, :in => %w(png jpg), :message => "extension must be :in" def validates_attached_extension(name, options = {}) message = options[:message] - message ||= "extension is not valid" + message ||= "extension is invalid" range = options[:in].map { |element| ".#{element}" } validates_inclusion_of :"#{name}_extension", :in => range, :message => message, :if => options[:if], :unless => options[:unless] \ No newline at end of file