This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename 'Time' struct to allow use with Sprockets.
I had a rather painful issue recently where Dullard (specifically, its recent support for Time) broke rails (specifically, sprockets that ships with Rails 4.1 and 4.2). As it happens, the Sprockets shipped with Rails makes a few classes via `class Foo < Struct(...)`, and within those classes then refer to `Time.parse` for asset times. Unfortunately, those classes being in `Struct::` means that `Time` refers now to the `Struct::Time` that Dullard creates. The class encapsulation of `Dullard::Time` isn't leaking, so that doesn't need to change -- just the name defined for the Struct.
- Loading branch information