Displaying 1 result from an estimated 1 matches for "6dc5320d".
2013 Sep 15
1
Why does Rails convert scopes to downcase
I found a strange behavior in Rails 4 with scopes when I use postgres.
I have a Object with saleStartDate and saleEndDate attributes.
scope :active, -> { where(isActivate: true) }
> scope :activeDate, -> { active.where("? BETWEEN saleStartDate AND
> saleEndDate", Date.today)}
When I use sqlite, all works when I want to get the object with the
activeDate scope.
When