Please sign in to comment.
Add Sequel.delay for generic delayed evaluation
The Sequel dataset layer has lacked a generic delayed evaluation utility before this. For dates/timestamps, it's recommended to use Sequel::CURRENT_DATE and Sequel::CURRENT_TIMESTAMP instead of a delayed Date.today or Time.now, and most other places where delayed evaluation could be useful (e.g. model associations), Sequel already handles by creating a new dataset every time. Still, I think a generic delayed evaluation facility is useful to have, and since it is fairly simple to implement and I may want to use it internally in the future, I decided to add it to the core library.
- Loading branch information...
Showing with 100 additions and 0 deletions.