Using Machinist, is there some way one can define blueprints such that they inherit attributes from other blueprints? I've looked at all the documentation and examples I've found, but I haven't seen it happening.
I want to do something like this:
User.blueprint do
name
email
end
User.blueprint(:admin) do
is_admin { true }
end
User.blueprint(:editor) do
is_editor { true }
group
end
User.blueprint(:contributor) do
is_editor { true }
end
Where they all inherit the name/email from the first blueprint, and the :contibutor blueprint inherits the group attribute from the :editor blueprint.
Is this possible?