Disposable
Facade existing (model) class where to decorate old instances from collections? option.invoice_template => .items
class Invoice class Option facades InvoiceOption
collection :items, original => :invoice_template
def items invoice_template.collect ..
- or: opt.invoice_tempate.facade.
end
- facades
- overriding public methods in facade
temporary Refinements
steps of refactoring
"explicit refactoring"
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'disposable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install disposable
Usage
TODO: Write usage instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request