attached 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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