class TroleGroups::Macros::Configuration::StorageLoader

Public Class Methods

new(strategy, orm) click to toggle source
# File lib/trole_groups/macros/configuration/storage_loader.rb, line 5
def initialize strategy, orm
  super
end

Public Instance Methods

storage_class() click to toggle source
# File lib/trole_groups/macros/configuration/storage_loader.rb, line 9
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