Commit 84dd5610 authored by Michael Kozono's avatar Michael Kozono

Fail if overridden CE methods are renamed

parent 172f253a
......@@ -5,6 +5,8 @@ module EE
private
def sign_up_params
raise NotImplementedError unless defined?(super)
clean_params = params.require(:user).permit(:username, :email, :email_confirmation, :name, :password, :email_opted_in)
if clean_params[:email_opted_in] == '1'
......
......@@ -5,6 +5,8 @@ module EE
private
def user_data(model)
raise NotImplementedError unless defined?(super)
data = {
name: model.name,
email: model.email,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment