correct line numbers for reader and writer methods #6847

merged 1 commit into from Jun 24, 2012


None yet

2 participants

benolee commented Jun 24, 2012

The line number for the reader method is off by one due to the local variable line being reassigned to the writer's line.

This commit would provide correct line numbers for backtraces and method introspection (for example, method(:reader).source_location).

I apologize in advance for the brevity of this commit -- I am submitting this from a phone using GitHub's "Edit this file" feature.

@carlosantoniodasilva carlosantoniodasilva merged commit df640f9 into rails:master Jun 24, 2012


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment