module ViewModel::MigratableView
def migration_path(from:, to:)
def migration_path(from:, to:) @migrations_lock.synchronize do realize_paths! unless @realized_migration_paths migrations = @migration_paths.fetch([from, to]) do raise ViewModel::Migration::NoPathError.new(self, from, to) end migrations end end