Improve code style
This commit is contained in:
parent
e4aebad35a
commit
927333f4f8
41 changed files with 126 additions and 122 deletions
|
@ -1,13 +1,13 @@
|
|||
class Auth::RegistrationsController < Devise::RegistrationsController
|
||||
layout 'auth'
|
||||
|
||||
before_filter :configure_sign_up_params, only: [:create]
|
||||
before_action :configure_sign_up_params, only: [:create]
|
||||
|
||||
protected
|
||||
|
||||
def build_resource(hash = nil)
|
||||
super(hash)
|
||||
self.resource.build_account if self.resource.account.nil?
|
||||
resource.build_account if resource.account.nil?
|
||||
end
|
||||
|
||||
def configure_sign_up_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue