Assigns object to self.resource, changing variable scope. #2096

merged 1 commit into from Oct 10, 2012

2 participants


The Sessions Controller was assigning resource instead of self.resource, meaning the resource variable wasn't available outside of the method.

For example, RABL templates wouldn't have access to the resource object.

This changes the resource assignment to be similar to the other controllers.

@josevalim josevalim merged commit 90dbae4 into plataformatec:master Oct 10, 2012

1 check was pending

Details default The Travis build is in progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment