method

build_scope

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Association
build_scope(scope) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/builder/association.rb, line 52
    def self.build_scope(scope)
      if scope && scope.arity == 0
        proc { instance_exec(&scope) }
      else
        scope
      end
    end
Register or log in to add new notes.