Corrected with rubocop cop 'Style/EmptyLinesAroundAccessModifier'.

This commit is contained in:
Thorsten Eckel 2015-05-01 14:31:46 +02:00
parent 3d18a7eaec
commit 71700779df
9 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -12,6 +12,7 @@ class Observer::Ticket::CloseTime < ActiveRecord::Observer
end
private
def _check(record)
# puts 'check close time'

View file

@ -12,6 +12,7 @@ class Observer::Ticket::OnlineNotificationSeen < ActiveRecord::Observer
end
private
def _check(record)
# return if we run import mode

View file

@ -51,6 +51,7 @@ class Setting < ApplicationModel
end
private
def delete_cache
@@current[:settings_config] = nil
end

View file

@ -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

View file

@ -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

View file

@ -26,6 +26,7 @@ class Token < ActiveRecord::Base
end
private
def generate_token
begin
self.name = SecureRandom.hex(20)

View file

@ -167,6 +167,7 @@ translate strings in ruby context, e. g. for notifications
end
private
def set_initial
return if target_initial

View file

@ -241,6 +241,7 @@ returns
end
private
def self.get_http(uri, options)
http = Net::HTTP.new(uri.host, uri.port)