]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocop warnings
authorTom Hughes <tom@compton.nu>
Tue, 12 May 2020 18:18:45 +0000 (19:18 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 12 May 2020 18:18:45 +0000 (19:18 +0100)
app/controllers/application_controller.rb
lib/classic_pagination/pagination.rb

index f419460ee77bc97762ad6c9bc230d0718cb88c9b..0099845942e80326ac8c0145d25986c551427e39 100644 (file)
@@ -10,6 +10,7 @@ class ApplicationController < ActionController::Base
   around_action :better_errors_allow_inline, :if => proc { Rails.env.development? }
 
   attr_accessor :current_user
   around_action :better_errors_allow_inline, :if => proc { Rails.env.development? }
 
   attr_accessor :current_user
+
   helper_method :current_user
 
   private
   helper_method :current_user
 
   private
index dbeaf5a408e66dfd757b6d63fb5ea639a49c44bc..b435a7111611783a3fe2fca880fb5f191f3b80c6 100644 (file)
@@ -309,6 +309,7 @@ module ActionController
           @number = 1 unless @paginator.has_page_number? @number
         end
         attr_reader :paginator, :number
           @number = 1 unless @paginator.has_page_number? @number
         end
         attr_reader :paginator, :number
+
         alias to_i number
 
         # Compares two Page objects and returns true when they represent the
         alias to_i number
 
         # Compares two Page objects and returns true when they represent the