Depricated delayed jobs

This commit is contained in:
Priit Tark 2015-04-02 14:47:52 +03:00
parent 17d130855c
commit 7d94304d56
10 changed files with 12 additions and 88 deletions

View file

@ -71,7 +71,7 @@ class Ability
can :manage, LegalDocument
can :read, ApiLog::EppLog
can :read, ApiLog::ReppLog
can :index, :delayed_job
# can :index, :delayed_job
can :create, :zonefile
can :access, :settings_menu
end

View file

@ -1,36 +1,3 @@
module DomainVersionObserver
extend ActiveSupport::Concern
# TODO: remove old
# included do
# after_save :delayed_whois_update
# end
# private
# def delayed_whois_update
# name = domain_name
# return unless name
# body = snapshot
# delay.update_private_whois(name, body)
# delay.update_public_whois(name, body)
# end
# def update_private_whois(domain_name, body)
# wd = Whois::PublicDomain.find_or_initialize_by(name: domain_name)
# wd.body = body
# wd.save!
# end
# def update_public_whois(domain_name, body)
# wd = Whois::PrivateDomain.find_or_initialize_by(name: domain_name)
# wd.body = body
# wd.save!
# end
# def domain_name
# name = reify.try(:name)
# name = load_snapshot[:domain][:name] if event == 'create'
# return name if name
# end
end

View file

@ -48,7 +48,7 @@
-# %li= link_to t(:domains_history), admin_domain_versions_path
%li= link_to t(:epp_logs), admin_epp_logs_path
%li= link_to t(:repp_logs), admin_repp_logs_path
%li= link_to t(:background_jobs), admin_delayed_jobs_path
-# %li= link_to t(:background_jobs), admin_delayed_jobs_path
%li.divider
%li.dropdown-header= t('users')