tkh_authentication 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/models/user.rb +2 -2
- data/lib/tkh_authentication/version.rb +1 -1
- data/lib/tkh_authentication.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 509147d7cb4ece79d59db4b583de65433d879b99
|
4
|
+
data.tar.gz: fd030aa0ecf62bb57c89be8ea543bfd913b7b0e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c06cc344430c6da7c3944da4e07702fb9291289ecc588638aefa78e90630f34b92de32a81859273b759d027d7556a78ba177d37d66013bc3c0ac6a82fee6b2
|
7
|
+
data.tar.gz: 780abd49caa0c545650797d26eb5f6e498b34260d67caa82f90e6db6719f6a839353644281e089443f2cd18d1e3220428008ec53d426e54b733343b527e7d9a9
|
data/CHANGELOG.md
CHANGED
data/app/models/user.rb
CHANGED
@@ -31,11 +31,11 @@ class User < ActiveRecord::Base
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def friendly_name
|
34
|
-
other_name
|
34
|
+
other_name.present? ? other_name : first_name
|
35
35
|
end
|
36
36
|
|
37
37
|
def spiritual_name
|
38
|
-
other_name
|
38
|
+
other_name.present? ? other_name : name
|
39
39
|
end
|
40
40
|
|
41
41
|
def visible_name_present? # used in tkh_authentication to determin whether to show name fields in login form
|
data/lib/tkh_authentication.rb
CHANGED
@@ -8,14 +8,14 @@ require 'tkh_authentication/tkh_authentication_helper'
|
|
8
8
|
module TkhAuthentication
|
9
9
|
class Engine < ::Rails::Engine
|
10
10
|
# to extend the application helper in the host app
|
11
|
-
initializer 'tkh_authentication.helper' do |app|
|
12
|
-
ActionView::Base.send :include, TkhAuthenticationHelper
|
13
|
-
end
|
11
|
+
initializer 'tkh_authentication.helper' do |app|
|
12
|
+
ActionView::Base.send :include, TkhAuthenticationHelper
|
13
|
+
end
|
14
14
|
# to extend the application_controller in the host app
|
15
15
|
initializer 'tkh_authentication.controller' do |app|
|
16
|
-
ActiveSupport.on_load(:action_controller) do
|
17
|
-
include TkhAuthenticationActionControllerExtension
|
16
|
+
ActiveSupport.on_load(:action_controller) do
|
17
|
+
include TkhAuthenticationActionControllerExtension
|
18
18
|
end
|
19
|
-
end
|
19
|
+
end
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|