we_bridge_rails_engine_users 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a1a91fad1e99b7e82b231a7966b470d41cb5d0a
4
- data.tar.gz: 469e86a211d4101af4f676105bc7f4cbbe0cf1bd
3
+ metadata.gz: c2bb9ee8237077bfb5366fa2a226ff5f9fd7c8ae
4
+ data.tar.gz: ab4c41477b48e2e59a9d353456f5330d3c9b6852
5
5
  SHA512:
6
- metadata.gz: 80d3903fba9c25c4d0f05b815ceb287968eb69826da77ba212794e6d28c4676bc46e52c155970493ba083c9822585e21ab60d4d70bea8d354faf111c134cdfa4
7
- data.tar.gz: cf09b15e73136fd07ff0fed2c6a9ff408cafed318cadcf236c2f0d9f277c3b9dc7b10bcfb5031fe7a20ebba4eba9799d094d1e3b8d1d1fa477f6be015250da81
6
+ metadata.gz: bd6037899aaace71ed6473608bc2a41d5b9651f7eda71121b2e5ef5a0f712afde0b23c874be6eed51019d33a38e271d06e5f12c17173cce7e605398fe1b202fd
7
+ data.tar.gz: f7274c197dab3df2e2ae3adfdeeb5f677076afd7c7608d4eb44bc3b97a634e82790cbf427e0e6217fd48166ad37363c52a42e1df351f2b43c181c4785368a4a8
@@ -4,7 +4,7 @@ class SessionsController < ApplicationController
4
4
  def login
5
5
  @providers = []
6
6
  WeBridgeRailsEngineUsers::ProviderSettings.availables do |name|
7
- @providers << {url: WeBridgeRailsEngineUsers::ProviderSettings.auth_path(name), display: name.to_s.capitalize }
7
+ @providers << {path_method: WeBridgeRailsEngineUsers::ProviderSettings.auth_path_method(name), display: name.to_s.capitalize }
8
8
  end
9
9
  end
10
10
 
@@ -13,7 +13,7 @@ markup do |m|
13
13
  m.ul do
14
14
  @providers.each do |p|
15
15
  m.li do
16
- m.a p[:display].to_s, href: p[:url]
16
+ m.a p[:display].to_s, href: __send__(p[:path_method])
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineUsers
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge_rails_engine_users
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki