Creating a Rails Concern which accepts arguments
30 Nov 2014
I wanted to create a Rails Concern which can accept arguments from the parent and/or it’s inherited sub-classes.
Most examples I came across online were simple Concerns which didn’t take any parameters or arguments. So here’s how I went about creating one. Let’s call it Arguable for the sake of this blog post.
Circle’s options would then have
exclude available from it’s parent class and all the other
custom options available from the subclass.