-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApplicationBlueprinter pattern #80
Comments
Definitely! There is no reason not to use the |
Apparently extending a blueprint with an identifier removes it from the returned value. Is that expected? IE, I had to add this line back to all of our blueprints: identifier :id |
I did a short test of your example locally and I can confirm you're correct and that it does not work. Will have to look into it further. |
The problem is the view collection is a class instance variable, thus it's not the same in the parent class and in the subclass. I've personally fixed the problem with this snippet in my BaseBlueprint
|
@Systho you're right, class instance variable is the problem. I think you have the right solution. |
resolved by #105 |
Is there any reason not to use the
Application
pattern with Blueprinter?application_blueprint.rb
:user_blueprint.rb
:The text was updated successfully, but these errors were encountered: