method

perform_fetch

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: TypeMap
perform_fetch(lookup_key, *args) 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/type/type_map.rb, line 48
        def perform_fetch(lookup_key, *args)
          matching_pair = @mapping.reverse_each.detect do |key, _|
            key === lookup_key
          end

          if matching_pair
            matching_pair.last.call(lookup_key, *args)
          else
            yield lookup_key, *args
          end
        end
Register or log in to add new notes.