New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) #91
お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) #91
Conversation
password 'secret1234' | ||
password_confirmation { password } | ||
|
||
trait :admin_user do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
特に命名規則があるわけじゃないですけど、"as_admin"とかがいいかなーと。 (create :user, :as_admin
だと英語っぽく読める)
他にも"with_xxx"みたいなパターンがよく使われるかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
了解です!
@JunichiIto 修正しました。時間のあるときにレビューをお願いします。
|
trait :as_admin do | ||
email 'admin@example.com' | ||
password '00000000' | ||
password_confirmation { password } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
password をtraitごとに変える必要はあるのかな?
別に全部同じでもいいのでは?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにそうですね。修正しておきます。
@t-oginogin 2点コメントしました。それ以外は大丈夫そうです。 |
@JunichiIto 修正しました。 |
@JunichiIto @maskoba さんのプルリクの指摘事項に対応しました。
時間ある時にレビューをお願いします。