Skip to content

Commit 99659ce

Browse files
committed
fixed bug where custom ticket fields were not being properly found
1 parent ac3144d commit 99659ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/trac4r/ticket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def check
4343
def method_missing(sym,*args)
4444
method = sym.to_s
4545
method = method[0..-2] if method =~ /!$/
46-
if args.size == 0 && instance_variables.include?("@" + sym.to_s)
46+
if args.size == 0 && instance_variables.include?("@#{method}".to_sym)
4747
instance_eval("@" + sym.to_s)
4848
elsif method != sym.to_s
4949
nil

0 commit comments

Comments
 (0)