Merge pull request #74 from muZk/patch-1

fix: rails 4.0.x
This commit is contained in:
Dzmitry Plashchynski
2022-05-29 20:28:10 +03:00
committed by GitHub

View File

@@ -78,7 +78,8 @@ module Crono
end
def time_atts
{ hour: @at_hour, min: @at_min }.compact
atts = { hour: @at_hour, min: @at_min }
atts.respond_to?(:compact) ? atts.compact : atts.select { |_, value| !value.nil? }
end
end
end