Method: Lore::Cache::File_Index.for

Defined in:
lib/lore/cache/file_index.rb

.for(table_name) ⇒ Object

Return array of cache file names depending from model



16
17
18
19
20
21
22
# File 'lib/lore/cache/file_index.rb', line 16

def self.for(table_name)
  select { |i|
    i.where(i.model == table_name)
  }.collect { |index| 
    index.file
  }
end