Dynamic Scope Methods in Edge Rails

We perform simple queries using dynamic finder and for commonly used query logic we use named scope.

but we cant chain query conditions when using these dynamic finders.

With the addition of dynamic scopes, we can now have a way to both quickly specify query logic and chain further conditions.


We can now use class methods like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply.

  1. Hipdrump says:

    nice! i’m gonna make my own blog

  2. Hoifled says:

    nice! i’m gonna make my own journal

  3. GarykPatton says:

    How soon will you update your blog? I’m interested in reading some more information on this issue.

  1. There are no trackbacks for this post yet.

Leave a Reply