RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Ruby DelegateClass

There are many ways to work with Ruby Objects. Inheritance, module inheritance, decorators, and composition are all commonly found in a codebase. The Single Table Inheritance pattern is a common pattern in Rails applications to share responsibilities between classes and store all records in the same place. This approach can work just fine, but it might be beneficial to think outside the single table for a second.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in