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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request