Module: Mobility::Backend::StringifyLocale

Defined in:
lib/mobility/backend/stringify_locale.rb

Overview

Module which stringifies the locale passed in to read and write methods.

Instance Method Summary collapse

Instance Method Details

#read(locale, options = {}) ⇒ Object



9
10
11
# File 'lib/mobility/backend/stringify_locale.rb', line 9

def read(locale, options = {})
  super(locale.to_s, options)
end

#write(locale, value, options = {}) ⇒ Object



13
14
15
# File 'lib/mobility/backend/stringify_locale.rb', line 13

def write(locale, value, options = {})
  super(locale.to_s, value, options)
end