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 +2 -3
- data/CHANGELOG.txt +1 -0
- data/VERSION +1 -1
- data/lib/sixarm_ruby_current_user.rb +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
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�
|
data/CHANGELOG.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.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.
|
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.
|
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.
|
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-
|
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
|