20 lines
562 B
Ruby
20 lines
562 B
Ruby
ActiveAdmin.register JamRuby::User, :as => 'RetailerInterest' do
|
|
|
|
menu :label => 'Interested in Retailers', :parent => 'JamClass'
|
|
|
|
config.sort_order = 'created_at desc'
|
|
config.batch_actions = false
|
|
config.per_page = 100
|
|
config.paginate = true
|
|
config.filters = false
|
|
|
|
scope("All", default: true) { |scope| scope.where(retailer_interest: true) }
|
|
|
|
index do
|
|
column "Name" do |user|
|
|
span do
|
|
link_to "#{user.name} (#{user.email})", "#{Rails.application.config.external_root_url}/client#/profile/#{user.id}"
|
|
end
|
|
end
|
|
end
|
|
end |