Permalink
Browse files

Add __FILE__ and __LINE__ to class_eval in force_slave_reads.rb. To i…

…mprove readability
  • Loading branch information...
1 parent b029828 commit d4c453f4d07375f5c991a1cd3511f2da751ff5a6 @libc libc committed Feb 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db_charmer/action_controller/force_slave_reads.rb
View
2 lib/db_charmer/action_controller/force_slave_reads.rb
@@ -55,7 +55,7 @@ def force_slave_reads?
protected
- class_eval <<-EOF
+ class_eval <<-EOF, __FILE__, __LINE__+1
def #{DISPATCH_METHOD}_with_forced_slave_reads(*args, &block)
DbCharmer.with_controller(self) do
#{DISPATCH_METHOD}_without_forced_slave_reads(*args, &block)

0 comments on commit d4c453f

Please sign in to comment.