fix table name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user