Updated

config/initializers / delayed_web.rb

A
21 lines of codes
2 methods
1.4 complexity/method
5 churn
2.8 complexity
0 duplications
# Tell Delayed::Web that we're using ActiveRecord as our backend. Rails.application.config.to_prepare do Delayed::Web::Job.backend = 'active_record' end # Authenticate our delayed job web interface Delayed::Web::ApplicationController.class_eval do include Authentication, FlashI18n hide_action :admin_request? def admin_request? true end protected def admin_login_url main_app.admin_login_url end end