Sha256: a47fea36c05e98aca962b1ac460a3001b36594a58e5f3ca4f9d76643aea99de5
Contents?: true
Size: 477 Bytes
Versions: 24
Compression:
Stored size: 477 Bytes
Contents
class EffectiveCustomersDatatable < Effective::Datatable datatable do col :id, visible: false col :user 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 end
Version data entries
24 entries across 24 versions & 1 rubygems