sixarm_ruby_current_user 1.4.4 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
-
2
- �� ��? �ǻ!<�oe�=�S��Ф ���b2C���忺�&���vF�<�e�x%Ԍ�$}�<:�M���LP�z���A!��
3
- �?�ʆ��T\���0�d �A�N%�m,Oyj�a�윹?� �
1
+ t�\�d������G�+�8ϾK����^�aw��[�|�j�,nU�덯���������[\�ݒ�ʢJaw�����$y.0�W(��N�9|0A!�θL&��ն(��B=�|?
2
+ Y�N {��=�N
@@ -1,5 +1,6 @@
1
1
  CHANGELOG
2
2
 
3
+ 2011-05-10 1.4.6 Return nil if user is not found
3
4
  2011-04-26 1.4.4 Add current_user_id methods
4
5
  2011-04-25 1.4.0 Add memoize and :reload => true
5
6
  2011-04-19 1.3.4 Add self and more tests
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.4
1
+ 1.4.6
@@ -16,7 +16,7 @@ module CurrentUser
16
16
 
17
17
  # Get the current user.
18
18
  #
19
- # This calls User.find with the current_user_id
19
+ # This calls User.find_by_id with the current_user_id
20
20
  #
21
21
  # The current user is memoized as @current_user.
22
22
  # To reload, pass :reload => true
@@ -27,7 +27,7 @@ module CurrentUser
27
27
 
28
28
  def current_user(ops={})
29
29
  if ops[:reload] then @current_user=nil end
30
- @current_user ||= (current_user_id(ops) ? User.find(current_user_id) : nil)
30
+ @current_user ||= (current_user_id(ops) ? User.find_by_id(current_user_id) : nil)
31
31
  end
32
32
 
33
33
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sixarm_ruby_current_user
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.4
5
+ version: 1.4.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - SixArm
@@ -30,7 +30,7 @@ cert_chain:
30
30
  eabwpCbAopo=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2011-04-26 00:00:00 -07:00
33
+ date: 2011-05-01 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file