Fixed rubocop messages
This commit is contained in:
@@ -15,7 +15,7 @@ class PayController < ApplicationController
|
||||
|
||||
msg = true if pay.save!
|
||||
respond_to do |format|
|
||||
format.json {render json: {msg: msg } }
|
||||
format.json { render json: {msg: msg } }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -38,7 +38,7 @@ class PayController < ApplicationController
|
||||
def decrypted_bank_acct_num
|
||||
decrypted = Encryption.decrypt_sensitive_value(params[:value_to_decrypt])
|
||||
respond_to do |format|
|
||||
format.json {render json: {account_num: decrypted || "No Data" }}
|
||||
format.json { render json: {account_num: decrypted || "No Data" } }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ class ScheduleController < ApplicationController
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.json {render json: {msg: message ? "success" : "failure" }}
|
||||
format.json { render json: {msg: message ? "success" : "failure" } }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user