Class: ModelLoader::ModelLoaderFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/datamapper4rails/preload_models.rb

Class Method Summary collapse

Class Method Details

.filter(controller) ⇒ Object



18
19
20
21
22
# File 'lib/datamapper4rails/preload_models.rb', line 18

def self.filter(controller)
  MODELS.each do |model|
    Object.const_get(model)
  end
end