Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant