« Unexpected behavior with rspec-rails, nesting contexts, before blocks, and ActiveRecord | Main | X-Cascade header in Rails »



Feed You can follow this conversation by subscribing to the comment feed for this post.

Got some interesting feedback on Freenode IRC #ruby about this post. There is a way to block subsequent modules from overriding methods in ruby 1.9+ using alias_method. In my case I still wanted access to both mixin methods, so it's not quite applicable, but a cool tip nonetheless.


Good post. We've learned to favor composition over inheritance. You point out a benefit to composition over mixing-in.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)