Sha256: 39a22718a25d3befcca44d5ded005bbb0eed2b7e0f4fb00dc1df8482abc334de
Contents?: true
Size: 416 Bytes
Versions: 5
Compression:
Stored size: 416 Bytes
Contents
module NFAgent class MapperProxy class << self def instance return @instance if @instance raise "No Mapper Set" if Config.mapper.blank? @instance = Config.mapper.constantize.new end # TODO: Can we delegate? def find_account_id(username, client_ip) instance.find_account_id(username, client_ip) end # TODO: before shutdown end end end
Version data entries
5 entries across 5 versions & 1 rubygems