upgrade(rails 5): add application record

This commit is contained in:
Joseph Mastey
2017-01-19 13:55:03 -06:00
parent 3474385141
commit 692fb99e51
12 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
class Analytics < ActiveRecord::Base
class Analytics < ApplicationRecord
scope :hits_by_ip, ->(ip,col="*") { select("#{col}").where(:ip_address => ip).order("id DESC")}
def self.count_by_col(col)