Created
October 24, 2013 00:04
-
-
Save westonplatter/7128993 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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