Skip to content

Instantly share code, notes, and snippets.

@rjlynch
Created May 30, 2019 10:16
Show Gist options
  • Select an option

  • Save rjlynch/73c6a982f462f86049acb9aed8220708 to your computer and use it in GitHub Desktop.

Select an option

Save rjlynch/73c6a982f462f86049acb9aed8220708 to your computer and use it in GitHub Desktop.
Rails date bug
[7] pry(main)> Bookings::PlacementDate.new({ 'date(1)' => '2019', 'date(2)' => '9', 'date(3)' => '31' })
=> #<Bookings::PlacementDate:0x00007f842b73e680 id: nil, date: Tue, 01 Oct 2019, created_at: nil, updated_at: nil, duration: 1, active: true, bookings_school_id: nil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment