Module: Platanus::ModelShims
- Defined in:
- lib/platanus/model_shims.rb
Overview
Shim extension for active record models
Provide the shims_for class method that generates getters and setters for every accesible attribute in another model and makes them accesible too (shims).
Values stored using the shims can then be accessed using the _shims_changed? and _shims_flush methods.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
17 18 19 |
# File 'lib/platanus/model_shims.rb', line 17 def self.included(base) base.extend ClassMethods end |