Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

doesn't automatically convert time params when sent to a scope #4

Open

Description

@catmando

If you have a scope param that is time, the system is not converting it properly.
For example

  scope :my_scope, -> (the_time) { where(created_at > the_time) }

fails.

work around is to do a to_s on the_time before passing it my_scope.

Activity

  1. added this to the Release 0.15 milestone on Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions