2335d7b9cf
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. |
||
---|---|---|
.. | ||
.gitkeep | ||
ability.rb | ||
commit.rb | ||
event.rb | ||
group.rb | ||
issue.rb | ||
key.rb | ||
merge_request.rb | ||
milestone.rb | ||
note.rb | ||
project.rb | ||
project_hook.rb | ||
protected_branch.rb | ||
snippet.rb | ||
system_hook.rb | ||
tree.rb | ||
user.rb | ||
users_project.rb | ||
web_hook.rb | ||
wiki.rb |