This post originated from an RSS feed registered with Ruby Buzz
by Peter Williams.
Original Post: Decouple the File in your Rails Plugin, Please
Feed Title: Peter Williams' Weblog
Feed URL: http://barelyenough.org/blog/tag/ruby/feed/
Feed Description: Random thoughs about software development, and anything else I find interesting.
Defining new behavior for core Rails classes in mixins is a common
pattern in Rails plugins. This allows for a separation of concerns
that improves maintainability and digestability. However, it raises a
bit of question about where the mixin inclusion step should take
place. Should it happen in the plugin’s init.rb or in the same file
as [...]