this is an adapter that exposes a Hash access method but calls to the model for the correct language.
[Source]
# File lib/gibberish_db.rb, line 112 112: def initialize(language) 113: @language = language 114: end
Alias for translate
# File lib/gibberish_db.rb, line 115 115: def translate(key) 116: Translation.find_cached_by_language_and_key(@language,key) 117: end
[Validate]