Flowdock
method

class_for_adapter

Importance_0
v6.1.3.1 - Show latest stable - 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 490
        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.