1
0
mirror of synced 2026-08-04 14:16:55 +00:00

fix table name

This commit is contained in:
Rimian Perkins
2019-12-03 13:29:47 +11:00
parent 29cc54b3c0
commit e1506bca5f
+4 -6
View File
@@ -2,14 +2,12 @@
module DiscoursePatrons
class Customer < ActiveRecord::Base
self.table_name = "discourse_subscriptions_customers"
scope :find_user, ->(user) { find_by_user_id(user.id) }
class << self
table_name = "discourse_subscriptions_customers"
def create_customer(user, customer)
create(customer_id: customer[:id], user_id: user.id)
end
def self.create_customer(user, customer)
create(customer_id: customer[:id], user_id: user.id)
end
end
end