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
|
||||
|
||||
private
|
||||
|
||||
def self.link_type_get(data)
|
||||
linktype = Link::Type.where( name: data[:name] ).first
|
||||
if !linktype
|
||||
|
|
|
@ -12,6 +12,7 @@ class Observer::Ticket::CloseTime < ActiveRecord::Observer
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def _check(record)
|
||||
# puts 'check close time'
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ class Observer::Ticket::OnlineNotificationSeen < ActiveRecord::Observer
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def _check(record)
|
||||
|
||||
# return if we run import mode
|
||||
|
|
|
@ -51,6 +51,7 @@ class Setting < ApplicationModel
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def delete_cache
|
||||
@@current[:settings_config] = nil
|
||||
end
|
||||
|
|
|
@ -10,6 +10,7 @@ class Sla < ApplicationModel
|
|||
after_destroy :escalation_calculation_rebuild
|
||||
|
||||
private
|
||||
|
||||
def escalation_calculation_rebuild
|
||||
Cache.delete( 'SLA::List::Active' )
|
||||
Ticket::Escalation.rebuild_all
|
||||
|
|
|
@ -7,6 +7,7 @@ class Taskbar < ApplicationModel
|
|||
before_update :update_last_contact, :set_user
|
||||
|
||||
private
|
||||
|
||||
def update_last_contact
|
||||
self.last_contact = Time.now
|
||||
end
|
||||
|
|
|
@ -26,6 +26,7 @@ class Token < ActiveRecord::Base
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def generate_token
|
||||
begin
|
||||
self.name = SecureRandom.hex(20)
|
||||
|
|
|
@ -167,6 +167,7 @@ translate strings in ruby context, e. g. for notifications
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def set_initial
|
||||
|
||||
return if target_initial
|
||||
|
|
|
@ -241,6 +241,7 @@ returns
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def self.get_http(uri, options)
|
||||
http = Net::HTTP.new(uri.host, uri.port)
|
||||
|
||||
|
|
Loading…
Reference in a new issue