authentasaurus 0.8.6 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -152,7 +152,7 @@ module Authentasaurus::Authorization
152
152
  # user_model - The model class representing a user (User by default)
153
153
  def is_logged_in?(user_model = nil) #:doc:
154
154
  user_model = Authentasaurus::Configuration.instance.user_model.camelize.constantize if user_model.nil?
155
- unless user_model.find_by_id(session[:user_id])
155
+ unless user_model.find_by_id(session[:user_id]) || !defined?(cookie_login?)
156
156
  return cookie_login?(user_model)
157
157
  end
158
158
  return true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 6
10
- version: 0.8.6
9
+ - 8
10
+ version: 0.8.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-01-11 00:00:00 +02:00
21
+ date: 2011-03-11 00:00:00 +02:00
22
22
  default_executable:
23
23
  dependencies: []
24
24
 
@@ -214,8 +214,8 @@ homepage: http://github.com/cousine/Authentasaurus-2
214
214
  licenses: []
215
215
 
216
216
  post_install_message:
217
- rdoc_options:
218
- - --charset=UTF-8
217
+ rdoc_options: []
218
+
219
219
  require_paths:
220
220
  - lib
221
221
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements: []
240
240
 
241
241
  rubyforge_project:
242
- rubygems_version: 1.4.1
242
+ rubygems_version: 1.6.1
243
243
  signing_key:
244
244
  specification_version: 3
245
245
  summary: Restful dynamic group/permission based authentication and authorization for Rails