Closed ShPakvel closed 9 years ago
That would be a bug indeed. Do you think the example is just incorrect? We claim to be overriding things, but really we can't. I would split the example in 2) one with rabl:
in the endpoint definition and another that does this programatically.
Care to PR?
When I have time I'll look at code to help to solve problem. Right now I've just added PR with readme correction as your described above.
@ShPakvel @dblock I can not reproduce mentioned issue. I created tests for proof (https://github.com/LTe/grape-rabl/issues/32).
@ShPakvel re-open this issue in case of any problems.
Render from example doesn't work properly. I mean this part:
Workaround like following helps and works fine:
But in your example, after execution with render rabl: 'admin' has happened, it does all following execution with 'admin' template as well.