Browse Source

Corrected with rubocop cop 'Style/EmptyLinesAroundAccessModifier'.

Thorsten Eckel 10 years ago
parent
commit
71700779df

+ 1 - 0
app/models/link.rb

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

+ 1 - 0
app/models/observer/ticket/close_time.rb

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

+ 1 - 0
app/models/observer/ticket/online_notification_seen.rb

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

+ 1 - 0
app/models/setting.rb

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

+ 1 - 0
app/models/sla.rb

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

+ 1 - 0
app/models/taskbar.rb

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

+ 1 - 0
app/models/token.rb

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

+ 1 - 0
app/models/translation.rb

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

+ 1 - 0
lib/user_agent.rb

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