-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade devise to 4.9.4 and OmniAuth
A required update to `devise` and `omniauth` gems. The breaking change is the changed form method from GET to POST. This change requires all OmniAuth buttons to be wrapped into a form to ensure we can use the POST method on them.
- Loading branch information
Showing
7 changed files
with
117 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
h3 = t(".social_accounts") | ||
|
||
.outer | ||
.social-container.full | ||
.social-label = t(".connected") | ||
- linked_providers(user).each do |_provider, info| | ||
- user.linked_social_accounts.each do |social_account| | ||
- info = all_providers[social_account.provider.to_sym] | ||
= link_to "#", class: info[:buttonclass] do | ||
i class=(info[:class]) | ||
span = info[:name] | ||
|
||
.social-container.full | ||
.social-label = t("add") | ||
- not_linked_providers(user).each do |_, info| | ||
= link_to info[:link], class: info[:buttonclass].to_s, target: "_blank" do | ||
i class="#{info[:class]}" | ||
span = info[:name] | ||
.social-label | ||
= t("add") | ||
|
||
- user.unlinked_social_providers.each do |provider| | ||
- info = all_providers[provider.to_sym] | ||
|
||
= form_with url: info[:link], method: :post do |f| | ||
= f.button nil, type: :submit, class: info[:buttonclass], target: "_blank" do | ||
i class="#{info[:class]}" | ||
span = info[:name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters