Sha256: 45fba83f946e2c82e43412770dc272d999548169b964e1c1f0aeca84c632944c

Contents?: true

Size: 236 Bytes

Versions: 16

Compression:

Stored size: 236 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
oxidized-0.16.3 lib/oxidized/source/source.rb
oxidized-0.16.2 lib/oxidized/source/source.rb
oxidized-0.16.1 lib/oxidized/source/source.rb
oxidized-0.16.0 lib/oxidized/source/source.rb
oxidized-0.15.0 lib/oxidized/source/source.rb
oxidized-0.14.3 lib/oxidized/source/source.rb
oxidized-0.14.2 lib/oxidized/source/source.rb
oxidized-0.14.1 lib/oxidized/source/source.rb
oxidized-0.14.0 lib/oxidized/source/source.rb
oxidized-0.13.1 lib/oxidized/source/source.rb
oxidized-0.13.0 lib/oxidized/source/source.rb
oxidized-0.12.2 lib/oxidized/source/source.rb
oxidized-0.12.1 lib/oxidized/source/source.rb
oxidized-0.12.0 lib/oxidized/source/source.rb
oxidized-0.11.0 lib/oxidized/source/source.rb
oxidized-0.10.0 lib/oxidized/source/source.rb