Flowdock
method

class_for_adapter

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: DatabaseTasks
class_for_adapter(adapter) 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/tasks/database_tasks.rb, line 301
        def class_for_adapter(adapter)
          _key, task = @tasks.each_pair.detect { |pattern, _task| adapter[pattern] }
          unless task
            raise DatabaseNotSupported, "Rake tasks not supported by '#{adapter}' adapter"
          end
          task.is_a?(String) ? task.constantize : task
        end
Register or log in to add new notes.