def password_required? false end def email_required? true end
编辑:
def password_required? new_record? ? false : super end