Vote #72311
完了Overwriting existing method Issue.open
0%
説明
Try
Project.first.issues.open => ArgumentError: wrong number of arguments (0 for 1)
Project.first.issues.open('public') => Errno::EACCES: Permission denied - public
From log:
Creating scope :open. Overwriting existing method Issue.open.
And others:
Creating scope :active. Overwriting existing method User.active.
Creating scope :open. Overwriting existing method Version.open.
etc..
Thanks for resolve
(workaround: Project.first.issues.visible.open)
Petr
journals
--------------------------------------------------------------------------------
I hope the following patch will help.
--------------------------------------------------------------------------------
Patch committed in r10199 with a test. Thanks for the fix.
--------------------------------------------------------------------------------
Thank you!
--------------------------------------------------------------------------------