smarter_dates 0.2.14 → 0.2.15

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.
@@ -18,7 +18,7 @@ module SmarterDates
18
18
 
19
19
  def self.convert_to_dt(convert_me)
20
20
  Proc.new do |val|
21
- dt = val && val.to_chronic_datetime
21
+ dt = val.respond_to?(:to_chronic_datetime) ? val.to_chronic_datetime : val
22
22
  if defined?(Rails)
23
23
  set_rails_dt_attributes!(convert_me, dt)
24
24
  else
@@ -1,4 +1,4 @@
1
1
  module SmarterDates
2
- VERSION = '0.2.14'
2
+ VERSION = '0.2.15'
3
3
  end
4
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: smarter_dates
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.14
5
+ version: 0.2.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Belt