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