Sha256: a3ccfe03e479e2a9a556e1da990f58cde8e3e7ab741be52262550936817996f4

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

module TroleGroups::Macros
  class Configuration  
    class StorageLoader < BaseLoader

      def initialize strategy, orm
        super
      end

      def storage_class
        begin
          "#{orm_namespace}::Storage::#{strategy.to_s.camelize}".constantize
        rescue
          # use generic if no ORM specific strategy found!
          "#{namespace}::Storage::#{strategy.to_s.camelize}".constantize
        end        
      end      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
troles-0.6.1 lib/trole_groups/macros/configuration/storage_loader.rb
troles-0.6.0 lib/trole_groups/macros/configuration/storage_loader.rb
troles-0.5.2 lib/trole_groups/macros/configuration/storage_loader.rb
troles-0.5.1 lib/trole_groups/macros/configuration/storage_loader.rb