Age | Commit message (Collapse) | Author |
|
|
|
Custom abilities are deprecated in favor of the new permission sets
API.
|
|
|
|
|
|
The billing address as well as the interval and end date can now be
set directly on the subscription, so we need to permit those attributes
by default.
|
|
|
|
|
|
Only show the admin sidebar link if the user is authorized to see it.
Before:
The link to the subscriptions area of the subscriptions administrative
area would be displayed on the admin login screen.
Clicking this link without authenticating would redirect the user to the
log in page
After:
The link to the subscriptions area of the admin is hidden until after
the user authenticates
|
|
Previous Behaviour:
The to_prepare block was reloading the permitted attributes module. This
resulted in the subscription parameters being appended to the spree
premitted attributes multiple times.
New behaviour:
Do not auto load the lib directory
Only load the permitted attributes once during the initalization process
|
|
Jam this link into the admin sidebar
|
|
|
|
Register the subscription order promotion rule up to solidus
|
|
Promo rule
|
|
Rake task and job
|
|
Add the custom promotion rule to the list of solidus promotion rules.
add some translations and an empty template so that the admin can render
the promotion rule properly
|
|
|
|
I mistakently put decorators in the overrides folder. These files were
loaded twice, once by the engine and once by deface.
Move these files where they belong and require them properly
|
|
|
|
|
|
This adds a CanCan class for modelling our permissions. This then
modifies the LineItemsController to use the new CanCan abilities instead
of manually checking.
|
|
This should be set to our engine's module namepsace, but instead it was
set to Spree (probably because most extensions pollute the Spree
namespace so it's there by default from the generators). Changing this
allows our engine routes to be properly defined as
`solidus_subscriptions` instead of `spree`.
|
|
Load the config module after the default spree payment methods have been
registered
|
|
All files in /overrides will be spree override files. Load them all
|
|
all models tables will be prefixed with 'solidus_subscriptions_'
|
|
|