Skip to content
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

Merged
merged 11 commits into from Jun 9, 2016

Conversation

t-oginogin
Copy link
Contributor

@JunichiIto @maskoba さんのプルリクの指摘事項に対応しました。
時間ある時にレビューをお願いします。

@t-oginogin t-oginogin changed the title お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する #84 お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) Jun 5, 2016
password 'secret1234'
password_confirmation { password }

trait :admin_user do
Copy link
Collaborator

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"みたいなパターンがよく使われるかも。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

了解です!

@t-oginogin t-oginogin changed the title お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) [WIP]お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) Jun 8, 2016
@t-oginogin t-oginogin changed the title [WIP]お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) お知らせ編集の[参加するか尋ねる]の状態を保存されている値で表示する(指摘事項対応) Jun 8, 2016
@t-oginogin
Copy link
Contributor Author

@JunichiIto 修正しました。時間のあるときにレビューをお願いします。

  • edit_information_pathの引数のidを削除
  • adminユーザーのtrait名修正
  • ログインのマクロ化

trait :as_admin do
email 'admin@example.com'
password '00000000'
password_confirmation { password }
Copy link
Collaborator

Choose a reason for hiding this comment

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

password をtraitごとに変える必要はあるのかな?
別に全部同じでもいいのでは?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

確かにそうですね。修正しておきます。

@JunichiIto
Copy link
Collaborator

@t-oginogin 2点コメントしました。それ以外は大丈夫そうです。

@t-oginogin
Copy link
Contributor Author

@JunichiIto 修正しました。

@JunichiIto JunichiIto merged commit ffa2ef2 into keisukefunatsu:master Jun 9, 2016
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.

None yet

3 participants