Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
Match on string instead of line
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Andrews committed Mar 16, 2015
1 parent 4f0f69e commit 90b2a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/masamune/schema/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def ruby_value(value, recursive = true)
when Date, DateTime
value.to_time
when String
if value =~ /^\d+$/
if value =~ /\A\d+\z/
Time.at(value.to_i)
else
Time.parse(value)
Expand Down

0 comments on commit 90b2a55

Please sign in to comment.