Any Ideas what means this error ?
ActiveRecord::DangerousAttributeError (delay is defined by ActiveRecord):
app/models/issue.rb:849:in `relations'
app/controllers/issues_controller.rb:118:in `show'
Thanks
Any Ideas what means this error ?
ActiveRecord::DangerousAttributeError (delay is defined by ActiveRecord):
app/models/issue.rb:849:in `relations'
app/controllers/issues_controller.rb:118:in `show'
Thanks
Dude, are you using the sidekiq
gem? Sidekiq uses a method called "delay" which is causing this problem. Removing the sidekiq gem will solve your issue, OR,
Just put this in your Gemfile
:
gem 'safe_attributes'
and do bundle install
More info: here and solutions can be found here
UPDATE: Alternatively, you could also install the redmine_sidekiq plugin which also solves the problem.
UPDATE-2: Have created a fork of sidekiq gem which solves the problem. Kindly find it here. Follow the instructions in the pull request.
Hope this helps !
You probably have delay
column in Issue
model. You should rename it, because this name is used internally by ActiveRecord
.
From the documentation, this error is "raised when attribute has a name reserved by Active Record (when attribute has name of one of Active Record instance methods)."
So basically the attribute delay
is one that is reserved by ActiveRecord and it would be a good idea to call it something else, or you will run into naming conflicts.