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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad67afa91517c97feb537facbd5a88becab69c46
4
- data.tar.gz: 50a213457bc223e4f6d28038783d852e2435d0ee
3
+ metadata.gz: 509147d7cb4ece79d59db4b583de65433d879b99
4
+ data.tar.gz: fd030aa0ecf62bb57c89be8ea543bfd913b7b0e1
5
5
  SHA512:
6
- metadata.gz: f649d7e592ae9b578b21f01bfa6b1797d36e4e2c925ecb4a6e9ba52c6850377c8a3d388a4c8d65416993c3a86c0f7f2f85a31955f63448bb52eb2043d767029a
7
- data.tar.gz: 11b7120fe872280c23731260b9c97431154c4da8f1038628d89e070a2815c31d4078d467875bef48e99808fd7ca9015270d3416d4d44c5702dccaf0cfb926c09
6
+ metadata.gz: 04c06cc344430c6da7c3944da4e07702fb9291289ecc588638aefa78e90630f34b92de32a81859273b759d027d7556a78ba177d37d66013bc3c0ac6a82fee6b2
7
+ data.tar.gz: 780abd49caa0c545650797d26eb5f6e498b34260d67caa82f90e6db6719f6a839353644281e089443f2cd18d1e3220428008ec53d426e54b733343b527e7d9a9
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+
6
+ ## 0.9.10
7
+
8
+ * Debugged friendly_name and spiritual_name virtual attributes in User model.
9
+
10
+
5
11
  ## 0.9.9
6
12
 
7
13
  * Upon succesful login, if target page is a reception page, redirect user to home page instead.
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 || first_name
34
+ other_name.present? ? other_name : first_name
35
35
  end
36
36
 
37
37
  def spiritual_name
38
- other_name || 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
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.10"
3
3
  end
@@ -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.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-16 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails