andrewculver / koudoku

Robust subscription support for Rails with Stripe.
MIT License
1.16k stars 187 forks source link

exposing user & subscription id-s #173

Open knagode opened 7 years ago

knagode commented 7 years ago

I see that koudoku is exposing user id & subscription id in URL:

/koudoku/users/4/subscriptions/12

Visiting /user/subscription could automatically open current_user and current_subscription. Is there a quick way to do it?

chinshr commented 7 years ago

@knagode If you are using e.g. Postgres, you could change your user and subscription primary keys to type UID.

jrz commented 7 years ago

The route shouldn't be exposing either one.. @knagode did you manage?

knagode commented 7 years ago

@jrz haven't found a good solution and said .. Lets leave it as it is until we get more subscribers :)