mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added description and title to Dynamic Scope Match
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
module ActiveRecord
|
||||
|
||||
# = Active Record Dynamic Scope Match
|
||||
#
|
||||
# Provides dynamic attribute-based scopes such as <tt>scoped_by_price(4.99)</tt>
|
||||
# if, for example, the <tt>Product</tt> has an attribute with that name. You can
|
||||
# chain more <tt>scoped_by_* </tt> methods after the other. It acts like a named
|
||||
# scope except that it's dynamic.
|
||||
class DynamicScopeMatch
|
||||
def self.match(method)
|
||||
ds_match = self.new(method)
|
||||
|
||||
Reference in New Issue
Block a user