Project

General

Profile

Actions

Defect #11545

closed

Overwriting existing method Issue.open

Added by Petr Pospisil over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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


Files

kernel_open_method_fix.diff (1.78 KB) kernel_open_method_fix.diff Alexander Markelov, 2012-08-12 18:56
Actions

Also available in: Atom PDF