Skip to content

Commit

Permalink
Move number of active alerts up front as it's more pertinent
Browse files Browse the repository at this point in the history
  • Loading branch information
henare committed Aug 27, 2015
1 parent 2039406 commit 6bdfc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/subscriptions.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ActiveAdmin.register Subscription do
index do
column :email
column(:active_alerts) { |s| s.alerts.active.count }
column(:trial?) do |s|
s.trial? ? status_tag("yes", :ok) : status_tag("no")
end
Expand All @@ -15,7 +16,6 @@
column :stripe_subscription_id
column :free_reason
column :trial_started_at
column(:active_alerts) { |s| s.alerts.active.count }
actions
end

Expand Down

0 comments on commit 6bdfc68

Please sign in to comment.