Project

General

Profile

Actions

Defect #11545

closed

Overwriting existing method Issue.open

Added by Petr Pospisil over 11 years ago. Updated over 11 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 #1

Updated by Jean-Philippe Lang over 11 years ago

  • Status changed from New to Confirmed
  • Priority changed from Urgent to Normal
Actions #2

Updated by Alexander Markelov over 11 years ago

I hope the following patch will help.

Actions #3

Updated by Jean-Philippe Lang over 11 years ago

  • Status changed from Confirmed to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.1.0
  • Resolution set to Fixed

Patch committed in r10199 with a test. Thanks for the fix.

Actions #4

Updated by Petr Pospisil over 11 years ago

Thank you!

Actions

Also available in: Atom PDF