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

Version Path
effective_orders-4.4.1 app/datatables/effective_customers_datatable.rb
effective_orders-4.4.0 app/datatables/effective_customers_datatable.rb
effective_orders-4.3.2 app/datatables/effective_customers_datatable.rb
effective_orders-4.3.1 app/datatables/effective_customers_datatable.rb
effective_orders-4.3.0 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.7 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.6 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.5 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.4 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.3 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.2 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.1 app/datatables/effective_customers_datatable.rb
effective_orders-4.2.0 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.5 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.4 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.3 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.2 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.1 app/datatables/effective_customers_datatable.rb
effective_orders-4.1.0 app/datatables/effective_customers_datatable.rb
effective_orders-4.0.6 app/datatables/effective_customers_datatable.rb