Flowdock
method

source_type_scope

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: PolymorphicReflection
source_type_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/reflection.rb, line 1018
        def source_type_scope
          type = @previous_reflection.foreign_type
          source_type = @previous_reflection.options[:source_type]
          lambda { |object| where(type => source_type) }
        end
Register or log in to add new notes.