Skip to content

Instantly share code, notes, and snippets.

@westonplatter
Created October 24, 2013 00:04
Show Gist options
  • Select an option

  • Save westonplatter/7128993 to your computer and use it in GitHub Desktop.

Select an option

Save westonplatter/7128993 to your computer and use it in GitHub Desktop.
## in main app
Spree::UserRegistrationsController.class_eval do
include SpreeMailchimpGibbon::SpreeUserRegistrationsControllerConcern
end
## in spree_mailchimp_gibbon extension
module SpreeMailchimpGibbon
module SpreeUserRegistrationsControllerConcern
extend ActiveSupport::Concern
private
def spree_user_params
params.require(:spree_user).permit(:email, :password, :password_confirmation, :is_mail_list_subscriber)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment