Corrected with rubocop cop 'Style/EmptyLinesAroundAccessModifier'.
This commit is contained in:
parent
3d18a7eaec
commit
71700779df
9 changed files with 9 additions and 0 deletions
|
@ -152,6 +152,7 @@ class Link < ApplicationModel
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def self.link_type_get(data)
|
def self.link_type_get(data)
|
||||||
linktype = Link::Type.where( name: data[:name] ).first
|
linktype = Link::Type.where( name: data[:name] ).first
|
||||||
if !linktype
|
if !linktype
|
||||||
|
|
|
@ -12,6 +12,7 @@ class Observer::Ticket::CloseTime < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def _check(record)
|
def _check(record)
|
||||||
# puts 'check close time'
|
# puts 'check close time'
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ class Observer::Ticket::OnlineNotificationSeen < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def _check(record)
|
def _check(record)
|
||||||
|
|
||||||
# return if we run import mode
|
# return if we run import mode
|
||||||
|
|
|
@ -51,6 +51,7 @@ class Setting < ApplicationModel
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def delete_cache
|
def delete_cache
|
||||||
@@current[:settings_config] = nil
|
@@current[:settings_config] = nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,6 +10,7 @@ class Sla < ApplicationModel
|
||||||
after_destroy :escalation_calculation_rebuild
|
after_destroy :escalation_calculation_rebuild
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def escalation_calculation_rebuild
|
def escalation_calculation_rebuild
|
||||||
Cache.delete( 'SLA::List::Active' )
|
Cache.delete( 'SLA::List::Active' )
|
||||||
Ticket::Escalation.rebuild_all
|
Ticket::Escalation.rebuild_all
|
||||||
|
|
|
@ -7,6 +7,7 @@ class Taskbar < ApplicationModel
|
||||||
before_update :update_last_contact, :set_user
|
before_update :update_last_contact, :set_user
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def update_last_contact
|
def update_last_contact
|
||||||
self.last_contact = Time.now
|
self.last_contact = Time.now
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,6 +26,7 @@ class Token < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def generate_token
|
def generate_token
|
||||||
begin
|
begin
|
||||||
self.name = SecureRandom.hex(20)
|
self.name = SecureRandom.hex(20)
|
||||||
|
|
|
@ -167,6 +167,7 @@ translate strings in ruby context, e. g. for notifications
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_initial
|
def set_initial
|
||||||
|
|
||||||
return if target_initial
|
return if target_initial
|
||||||
|
|
|
@ -241,6 +241,7 @@ returns
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def self.get_http(uri, options)
|
def self.get_http(uri, options)
|
||||||
http = Net::HTTP.new(uri.host, uri.port)
|
http = Net::HTTP.new(uri.host, uri.port)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue