Module: Tramway::Core::Delegating::ClassHelper
- Included in:
- ApplicationDecorator
- Defined in:
- app/decorators/tramway/core/delegating/class_helper.rb
Instance Method Summary collapse
Instance Method Details
#delegate_attributes(*attributes) ⇒ Object
4 5 6 7 8 |
# File 'app/decorators/tramway/core/delegating/class_helper.rb', line 4 def delegate_attributes(*attributes) attributes.each do |attr| delegate attr, to: :object end end |