method
new
v2.1.0 -
Show latest stable
- Class:
ActiveRecord::NamedScope::Scope
new(proxy_scope, options, &block)public
No documentation available.
# File activerecord/lib/active_record/named_scope.rb, line 112
def initialize(proxy_scope, options, &block)
[options[:extend]].flatten.each { |extension| extend extension } if options[:extend]
extend Module.new(&block) if block_given?
@proxy_scope, @proxy_options = proxy_scope, options.except(:extend)
end