• Scott Holden's avatar
    Fix broken Note scopes with lambdas, 4.0 compat · 2335d7b9
    Scott Holden authored
    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.
    2335d7b9
note.rb 3.04 KB