Sha256: 5ba9c3484c870404d074b26849edf4a15fe06681991739f5bbb9364077a3a2a9
Contents?: true
Size: 683 Bytes
Versions: 21
Compression:
Stored size: 683 Bytes
Contents
class EffectiveCustomersDatatable < Effective::Datatable datatable do col :id, visible: false #col 'user.email' if EffectiveOrders.stripe? col :stripe_customer_id col :active_card end actions_col do |customer| link_to('Manage', "https://dashboard.stripe.com/#{'test/' if Rails.env.development?}customers/#{customer.stripe_customer_id}") end end collection do Effective::Customer.joins(:user).all end # def search_column(collection, table_column, search_term) # return collection.where('subscriptions.stripe_plan_id ILIKE ?', "%#{search_term}%") if table_column[:name] == 'subscription_types' # super # end end
Version data entries
21 entries across 21 versions & 1 rubygems