Class: PerformLater::Plugins

Inherits:
Object
  • Object
show all
Defined in:
lib/perform_later/plugins.rb

Class Method Summary collapse

Class Method Details

.add_finder(klass) ⇒ Object



7
8
9
10
11
# File 'lib/perform_later/plugins.rb', line 7

def self.add_finder(klass)
  if klass.respond_to?(:find)
    @@finder_class = klass
  end
end

.clear_finder!Object



13
14
15
# File 'lib/perform_later/plugins.rb', line 13

def self.clear_finder!
  @@finder_class = nil
end

.finder_classObject



3
4
5
# File 'lib/perform_later/plugins.rb', line 3

def self.finder_class
  @@finder_class ||= nil
end