Sha256: 6300c554e2f44bc3ef2e6b87fd97ccf6191996f99aea667a5293a4436f4b04de

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

module Troles::Macros
  class Configuration  
    class ConfigLoader < BaseLoader
            
      def initialize strategy, orm
        super
      end

      def config_class
        begin       
          "#{orm_namespace}::Config".constantize
        rescue
          # use generic if no ORM specific strategy found!
          "#{namespace}::Config".constantize
        end        
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
troles-0.5.2 lib/troles/common/macros/configuration/config_loader.rb
troles-0.5.1 lib/troles/common/macros/configuration/config_loader.rb
troles-0.5.0 lib/troles/common/macros/configuration/config_loader.rb