Class: Mobility::Backend::ActiveRecord::Column
- Includes:
- Mobility::Backend, Column
- Defined in:
- lib/mobility/backend/active_record/column.rb
Overview
Note:
This backend disables the accessor_locales
option, which would otherwise interfere with column methods.
Implements the Column backend for ActiveRecord models.
Defined Under Namespace
Classes: QueryMethods
Instance Attribute Summary
Attributes included from Mobility::Backend
Backend Accessors collapse
-
#read(locale, **options) ⇒ Object
Value of translation.
-
#write(locale, value, **options) ⇒ Object
Updated value.
Backend Configuration collapse
Methods included from Column
Methods included from OrmDelegator
Methods included from Mobility::Backend
included, #initialize, method_name
Class Method Details
.configure!(options) ⇒ Object
37 38 39 |
# File 'lib/mobility/backend/active_record/column.rb', line 37 def self.configure!() [:locale_accessors] = false end |