Fixed rubocop messages

This commit is contained in:
Al Snow
2018-03-08 17:02:24 -05:00
parent 8dc8f4d61b
commit b8262ecb0a
7 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# frozen_string_literal: true
class Analytics < ApplicationRecord
scope :hits_by_ip, ->(ip, col = "*") { select("#{col}").where(ip_address: ip).order("id DESC")}
scope :hits_by_ip, ->(ip, col = "*") { select("#{col}").where(ip_address: ip).order("id DESC") }
def self.count_by_col(col)
calculate(:count, col)