Skip to content

Commit f609925

Browse files
committed
Merge pull request ogom#4 from devaroop/master
Removed :delay method for class and added guidelines to end user
2 parents 01c19fe + d776d19 commit f609925

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ You can Monitoring easily used by [Sidekiq plugin](http://www.redmine.org/plugin
88

99
* Administrator can use the Sidekiq Web UI from the top menu.
1010
* Add to autoload_paths of the Plugin `/app/workers`.
11+
* IMPORTANT: Anyone trying to use the sidekiq `:delay` method, use `:sidekiq_delay` instead because for former has clashes with Redmine safe attributes. There is NO change for `:delay_for` and `:delay_until` methods.
1112

1213
## Installation
1314

lib/redmine_sidekiq/configure.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ class Configure
2323
Sidekiq::Extensions::ActionMailer.module_eval do
2424
remove_method :delay if respond_to?(:delay)
2525
end
26+
27+
Sidekiq::Extensions::Klass.module_eval do
28+
remove_method :delay if respond_to?(:delay)
29+
end
30+
2631
end
2732
end

0 commit comments

Comments
 (0)