Module: Mobility::Plugins::AttributeMethods

Extended by:
Mobility::Plugin
Defined in:
lib/mobility/plugins/attribute_methods.rb

Overview

Note:

Adding translated attributes to attributes can have unexpected consequences, since these attributes do not have corresponding columns in the model table. Using this plugin may lead to conflicts with other gems.

Adds translated attribute names and values to the hash returned by #attributes. Also adds a method #translated_attributes with names and values of translated attributes only.

Defined Under Namespace

Modules: InstanceMethods

Method Summary

Methods included from Mobility::Plugin

configure, configure_default, default, dependencies, dependencies_satisfied?, included, included_hook, initialize_hook, requires