Module: ComposableDecorator::ActiveRecord::Base
- Defined in:
- lib/composable_decorator/active_record/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
6 7 8 9 10 |
# File 'lib/composable_decorator/active_record/base.rb', line 6 def self.included(mod) mod.extend DSL mod.__initialize end |
Instance Method Details
#decorate ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/composable_decorator/active_record/base.rb', line 12 def decorate __add_decorators __decorate_associations __delegate_decorated_associations self end |