Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update validates_timeliness gem, validate datetime, not date

  • Loading branch information...
commit d7ed5aa3c7b9e8febd1a2b5e83f630f9af47031d 1 parent 627add9
Kevin Chambers authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 Gemfile.lock
  2. +2 −2 app/models/run.rb
View
6 Gemfile.lock
@@ -189,14 +189,14 @@ GEM
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
thor (0.14.6)
- timeliness (0.3.4)
+ timeliness (0.3.6)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.32)
userstamp (2.0.1)
- validates_timeliness (3.0.6)
- timeliness (~> 0.3.3)
+ validates_timeliness (3.0.11)
+ timeliness (~> 0.3.6)
warden (1.0.4)
rack (>= 1.0)
will_paginate (3.0.pre2)
View
4 app/models/run.rb
@@ -13,8 +13,8 @@ class Run < ActiveRecord::Base
accepts_nested_attributes_for :trips
- validates_date :scheduled_end_time, :after => :scheduled_start_time, :allow_nil => true
- validates_date :actual_end_time, :after => :actual_start_time, :allow_nil => true
+ validates_datetime :scheduled_end_time, :after => :scheduled_start_time, :allow_nil => true
+ validates_datetime :actual_end_time, :after => :actual_start_time, :allow_nil => true
scope :for_provider, lambda{|provider_id| where( :provider_id => provider_id ) }
scope :for_paid_driver, where(:paid => true)
Please sign in to comment.
Something went wrong with that request. Please try again.