Skip to content

Chapter 6 - Make a basic User model (including secure passwords)#5

Merged
truongprototype merged 1 commit intomasterfrom
modeling-users
Jun 29, 2017
Merged

Chapter 6 - Make a basic User model (including secure passwords)#5
truongprototype merged 1 commit intomasterfrom
modeling-users

Conversation

@truongprototype
Copy link
Copy Markdown
Owner

No description provided.

@truongprototype
Copy link
Copy Markdown
Owner Author

ready

@@ -0,0 +1,10 @@
class User < ApplicationRecord
before_save { email.downcase! }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before_save {email.downcase!}

Tương tự những chỗ khác, em fix hết đi nhé

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vâng, em cảm ơn ạ

@dieunb
Copy link
Copy Markdown

dieunb commented Jun 29, 2017

commented

@truongprototype
Copy link
Copy Markdown
Owner Author

ready

@dieunb
Copy link
Copy Markdown

dieunb commented Jun 29, 2017

merged

@truongprototype truongprototype merged commit d5de897 into master Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants