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

Internal error when creating a New issue where assignee is a group #52

Open
douwefaber opened this issue Sep 27, 2013 · 4 comments
Open

Comments

@douwefaber
Copy link

When creating a new issue where the assignee is a group for which I created a WIP limit I get an error.

NoMethodError (undefined method select!' for #<ActiveRecord::Relation:0x7fab4e3727a0>): app/controllers/issues_controller.rb:141:increate'

@prmartinuk
Copy link
Contributor

What version of Ruby are you using?
select! is a comparably recent addition to the Ruby standard libraries (the function was added in March 2010).

@douwefaber
Copy link
Author

I'm using ruby 1.8.7 (2011-06-30 patchlevel 352) on Ubuntu server 12.04 x86_64

@douwefaber douwefaber reopened this Oct 2, 2013
@prmartinuk
Copy link
Contributor

I think that is the problem as I don't think select! was put into a formal Ruby release until 1.9.2.

If you don't want to upgrade your Ruby installation then I think there might be a very easy workaround.

  • I think that if you assign the group a role (i.e. add the group as a member of the project) then it should work. It does not need to use the select! statement then.

If this doesn't work then let me know as there is a code change that could be made instead.

@wonhoseo
Copy link

This constraint was set at lib/ekanban/issue_patch.rb line 57: validates_presence_of :assigned_to.
from #23

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

No branches or pull requests

3 participants