Skip to content
Browse files

1.9.2 fix

  • Loading branch information...
1 parent b7a265b commit 4ace03d8fb8edbee4c91913f925e9ee265377829 @seejohnrun committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/ice_cube/validations/until.rb
View
3 lib/ice_cube/validations/until.rb
@@ -11,7 +11,8 @@ def until_time
deprecated_alias :until_date, :until_time
def until(time)
- @until = time = TimeUtil.ensure_time time, true
+ time = TimeUtil.ensure_time time, true
+ @until = time
replace_validations_for(:until, time.nil? ? nil : [Validation.new(time)])
self
end

0 comments on commit 4ace03d

Please sign in to comment.
Something went wrong with that request. Please try again.