Closed timfong888 closed 13 years ago
I see the example: [code] User.scope_procedure :awesome, lambda { name_begins_with("Ben").name_ends_with("Johnson") } [/code]
But where do I define this, can I put this in the User.rb? This syntax is different from define named procedures, for example.
In the same exact place you defined named_scopes
ah, gotcha, I figured it out -- it wasn't working because needed to hit reload! in the console....
I see the example: [code] User.scope_procedure :awesome, lambda { name_begins_with("Ben").name_ends_with("Johnson") } [/code]
But where do I define this, can I put this in the User.rb? This syntax is different from define named procedures, for example.