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

- old
+ new

@@ -151,10 +151,10 @@ message = options[:message] message ||= "extension is not valid" range = options[:in].map { |element| ".#{element}" } - validates_inclusion_of :"#{name}_extension", :message => message, + validates_inclusion_of :"#{name}_extension", :in => range, :message => message, :if => options[:if], :unless => options[:unless] end # Validates that an attachment is included. \ No newline at end of file