Method: Mobility::Attributes#included
- Defined in:
- lib/mobility/attributes.rb
#included(model_class) ⇒ Object
Add this attributes module to shared Wrapper and setup model with backend setup block (see Backend::Setup#setup_model).
168 169 170 171 |
# File 'lib/mobility/attributes.rb', line 168 def included(model_class) model_class.mobility << self backend_class.setup_model(model_class, attributes, ) end |