attached 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/attached.rb +1 -1
- data/lib/attached/version.rb +1 -1
- metadata +1 -1
data/lib/attached.rb
CHANGED
@@ -153,7 +153,7 @@ module Attached
|
|
153
153
|
|
154
154
|
range = options[:in].map { |element| ".#{element}" }
|
155
155
|
|
156
|
-
validates_inclusion_of :"#{name}_extension", :message => message,
|
156
|
+
validates_inclusion_of :"#{name}_extension", :in => range, :message => message,
|
157
157
|
:if => options[:if], :unless => options[:unless]
|
158
158
|
end
|
159
159
|
|
data/lib/attached/version.rb
CHANGED