Sha256: 23b8044c862d0bd0a81f0b8cb8a7374b10b3ddd6dd3b1bd8b060c4bb958c1fd3
Contents?: true
Size: 484 Bytes
Versions: 25
Compression:
Stored size: 484 Bytes
Contents
class Admin::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
25 entries across 25 versions & 1 rubygems