instance method scoped

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v3.1.12

Available in: v2.3.18 v3.0.20 v3.1.12

Signature

scoped(scope, &block)

No documentation comment.

Parameters

scope req
block block
Source
# File activerecord/lib/active_record/named_scope.rb, line 19
      def scoped(scope, &block)
        Scope.new(self, scope, &block)
      end

Defined in activerecord/lib/active_record/named_scope.rb line 19 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::NamedScope::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close