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, = {}) super(locale.to_s, ) end |
#write(locale, value, options = {}) ⇒ Object
13 14 15 |
# File 'lib/mobility/backend/stringify_locale.rb', line 13 def write(locale, value, = {}) super(locale.to_s, value, ) end |