devise_autosigninable 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ module Devise
63
63
  end
64
64
  end
65
65
  reset_autosignin_token! if self.class.autosignin_expire
66
- save(false) if changed?
66
+ save(:validate => false) if changed?
67
67
  result
68
68
  end
69
69
 
@@ -114,4 +114,4 @@ module Devise
114
114
  end
115
115
  end
116
116
 
117
- end
117
+ end
@@ -1,3 +1,3 @@
1
1
  module DeviseAutosigninable
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,13 +1,13 @@
1
1
  namespace :devise do
2
2
  namespace :autosigninable do
3
3
  desc 'Generate missed autosignin tokens, by default for User model'
4
- task :ensure, :model => :environment do |t, args|
4
+ task :ensure, [:model] => :environment do |t, args|
5
5
  args.with_defaults(:model => "User")
6
6
  args.model.camelize.constantize.ensure_all_autosignin_tokens
7
7
  end
8
8
 
9
9
  desc 'Reset all autosignin tokens, by default for User model'
10
- task :reset, :model => :environment do |t, args|
10
+ task :reset, [:model] => :environment do |t, args|
11
11
  args.with_defaults(:model => "User")
12
12
  args.model.camelize.constantize.reset_all_autosignin_tokens
13
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_autosigninable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrey Deryabin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-25 00:00:00 +04:00
18
+ date: 2011-12-22 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21