Module: ExtraLoop::Storage

Defined in:
lib/extraloop/redis-storage.rb

Defined Under Namespace

Modules: Exceptions, IdKey Classes: DatasetFactory, FusionTables, Model, Record, RemoteStore, ScrapingSession

Class Method Summary collapse

Class Method Details

.autoload_models(dirname = 'models') ⇒ Object

Tries to automatically locate the models directory and load all ruby files within in



43
44
45
# File 'lib/extraloop/redis-storage.rb', line 43

def self.autoload_models(dirname='models')
#  Dir["**/**#{dirname}/*.rb"].each { |path| require "./#{path}" }
end

.connect(*args) ⇒ Object



38
39
40
# File 'lib/extraloop/redis-storage.rb', line 38

def self.connect(*args)
  Ohm.connect(*args)
end