blob: 3c1f255b80ca850bcdc594d7cb721fb8cc0310cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Oxidized
class Source
class NoConfig < OxidizedError; end
def initialize
@map = (CFG.model_map or {})
end
def map_model model
@map.has_key?(model) ? @map[model] : model
end
end
end
|