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 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
 
@@ -1,3 +1,3 @@
1
1
  module Attached
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: attached
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Sylvestre