-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgraded controllers and models to modules also upgraded overrides an… #66
base: master
Are you sure you want to change the base?
Conversation
before_action :add_subscription_fields, only: :populate, if: -> { params[:subscribe].present? } | ||
before_action :restrict_guest_subscription, only: :update, unless: :spree_current_user | ||
def self.prepended(base) | ||
# base.before_action :add_subscription_fields, only: :populate, if: -> { params[:subscribe].present? } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets discuss
@@ -95,20 +95,20 @@ def number_of_deliveries_left | |||
|
|||
def pause | |||
run_callbacks :pause do | |||
update_attributes(paused: true) | |||
update(paused: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets discuss
insert_bottom: ".cart-total", | ||
partial: "spree/orders/cart_subscription_footer" | ||
) | ||
# Deface::Override.new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets discuss
…d forms