summaryrefslogtreecommitdiff
path: root/billing/app/controllers/subscriptions_controller.rb
AgeCommit message (Collapse)Author
2014-04-11move engines into engines directoryAzul
Also renamed help to support so it's harder to confuse it with documentation
2014-02-10rename authorize to require_loginAzul
authorize_admin -> require_admin also add require_token which will ensure token has been used for auth.
2013-10-17Some cleanup of code to deal with past due subscriptions.jessib
2013-10-15Add permissions to subscriptions index, and fix test to stub the ↵jessib
subscription's balance.
2013-10-10Admins can cancel pastdue subscriptions, but users cannot cancel their own ↵jessib
pastdue subscription, as then admins won't be able to search for them.
2013-10-08Consider pending & past due subscriptions as 'active' in the sense that they ↵jessib
should prevent one from adding a new subscription.
2013-09-18test subscription owner via credit card not transactionsAzul
There might not have been any transactions. Fixes the functional test
2013-09-09First run at having admins cancel user subscriptions.jessib
2013-08-22Some more billing cleanup.jessib
2013-08-08Still a bit hacky, but catching some more corner cases as far as setting the ↵jessib
user variable, due to complication that an admin might be accessing data for another user.
2013-08-06Some more tweaks to have billing code work, and allow admins to view but not ↵jessib
edit for other users.
2013-07-17billing: helper for the typical BraintreeFormAzul
2013-07-17More cleanup of billing code.jessib
2013-07-17Show single active subscription from user's page, with link to index showing ↵jessib
all the user's subscriptions.
2013-07-17Added notices to redirects.jessib
2013-07-17Some improvements to navigation, and pulling out separate show/edit views ↵jessib
for customers.
2013-07-17Some permission checks for viewing/cancelling subscriptions.jessib
2013-07-17Allow subscriptions to be canceled.jessib
2013-07-17Displaying of user's subscription. Still not committed to whether user can ↵jessib
have multiple subscriptions at a time or not.
2013-07-17Display of subscription information on a customer's edit page. It is *super* ↵jessib
slow. Posted stackoverflow question as not clear if there is more efficient way to get this information via braintree API.
2013-07-17More working subscriptions.jessib