diff options
| author | Scott Holden <sholde4@gmail.com> | 2012-10-24 21:54:15 -0700 |
|---|---|---|
| committer | Scott Holden <sholde4@gmail.com> | 2012-10-24 21:54:15 -0700 |
| commit | 2335d7b9cf577fb03ed4efc660b8e3e706c1c01b (patch) | |
| tree | 480a8a150a252d1b27d625105ebede0ae60d8264 /spec | |
| parent | 5add5f760ebd87e9318f13d3f2ae4e4a4ddbe3ae (diff) | |
| download | gitlab-ce-2335d7b9cf577fb03ed4efc660b8e3e706c1c01b.tar.gz | |
Fix broken Note scopes with lambdas, 4.0 compat
Without lambdas, Date.today will be evaluated in the class body.
For it to have a running scope of last week etc, it will need to
be evaluated each time the scope is called.
In Rails 4.0, lambdas will be required for all scopes, so not a bad
idea to go ahead and change them all now.
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions
