Skip to content

Conversation

@deweerdt
Copy link

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:inmethod_missing': compile error (SyntaxError)
(eval):1: syntax error, unexpected '!', expecting $end
@ticketclones!

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
@ticketclones!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant