Class: I18n::PostgresJson::KeyValue::Translation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- I18n::PostgresJson::KeyValue::Translation
- Defined in:
- lib/i18n/postgres_json/key_value/translation.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
7 8 9 |
# File 'lib/i18n/postgres_json/key_value/translation.rb', line 7 def [](key) translations[key] end |
#[]=(key, value) ⇒ Object
11 12 13 14 15 |
# File 'lib/i18n/postgres_json/key_value/translation.rb', line 11 def []=(key, value) translations[key] = value save! end |
#keys ⇒ Object
17 18 19 |
# File 'lib/i18n/postgres_json/key_value/translation.rb', line 17 def keys translations.keys end |