Flowdock
method

ids

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: AssociationQueryValue
ids() 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/relation/predicate_builder/association_query_value.rb, line 25
        def ids
          case value
          when Relation
            relation = value
            relation = relation.select(primary_key) if select_clause?
            relation = relation.where(primary_type => polymorphic_name) if polymorphic_clause?
            relation
          when Array
            value.map { |v| convert_to_id(v) }
          else
            [convert_to_id(value)]
          end
        end
Register or log in to add new notes.