ticket.method_missing, fix the '!' case #5

wants to merge 1 commit into
Commits on May 16, 2012
  1. @deweerdt

    ticket.method_missing fix the '!' case

    deweerdt committed May 16, 2012
    When calling instance_eval we need to pass in the stripped method name
    (without the '!'), otherwise a call to ticket.my_field! fails with:
    /var/lib/gems/1.8/gems/trac4r-1.2.3/lib/trac4r/ticket.rb:51:in `method_missing': (eval):1:in `method_missing': compile error (SyntaxError)
    (eval):1: syntax error, unexpected '!', expecting $end