https://github.com/orgsync/active_interaction https://github.com/cypriss/mutations
https://github.com/orgsync/active_interaction https://github.com/cypriss/mutations
0 - http://www.ruby-doc.org/stdlib-1.9.3/libdoc/delegate/rdoc/Si...
1 - http://www.ruby-doc.org/stdlib-1.9.3/libdoc/delegate/rdoc/De...
2 - http://www.ruby-doc.org/stdlib-2.0/libdoc/forwardable/rdoc/F...
MassivelyUpVotedPostPresenter.new(@post, self.view_context)
Or just inject the whole controller instance and you have your router helpers too!
MassivelyUpVotedPostPresenter.new(@post, self)
- Built-in ActiveModel validations. - Designed to be used with form objects. - Easier and more flexible composition. - Translatable with I18n. - Quacks like an ActiveModel.
That being said, Mutations is a great library for PORO interactors and ActiveInteraction wouldn't exist without it.