acts_as_metadata 0.3.7 → 0.3.8

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.
@@ -41,7 +41,7 @@ class MetadataType < ActiveRecord::Base
41
41
 
42
42
  def type_cast(value)
43
43
  return nil if value.nil? && datatype != 'boolean'
44
- return value unless value.is_a? String
44
+ return value unless value.is_a? String || value.nil?
45
45
  case datatype
46
46
  when 'date'
47
47
  ActiveRecord::ConnectionAdapters::Column.string_to_date value
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetadata
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: