instant_login 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/instant_login/install_generator.rb +1 -1
- data/lib/instant_login/version.rb +1 -1
- data/lib/instant_login.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0b0bd5a5e6c35f8609cb75d3d880414c02e2c09
|
4
|
+
data.tar.gz: 344495464463ae03920b01abdc1d86aacfeb939e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb667a0a8b1a95ee2f8e2ccc6fd0855e372aa61765904f34ebfc0c0187aaf1e830275d69c5d4509d13d9a2a92f3e231b27edc487d0a67e913e0a3378c5f86c5
|
7
|
+
data.tar.gz: 655c04bcfb05a4f236e4bf62116b6fc12aa22c5df4b6522f365972bb0582601c57de12e8c2d7709dff54c56a47f919684b7f231ae120161d9ce1f5a700535c91
|
@@ -17,7 +17,7 @@ module InstantLogin
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def copy_migration_files
|
20
|
-
migration_template "migration.rb", "db/migrate/
|
20
|
+
migration_template "migration.rb", "db/migrate/instant_login_migration.rb" if options["migration"]
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.next_migration_number(dirname)
|
data/lib/instant_login.rb
CHANGED
@@ -12,7 +12,7 @@ module InstantLogin
|
|
12
12
|
config_accessor(:failure_path) { '/' }
|
13
13
|
|
14
14
|
# By default we store the signed in user id in this session key
|
15
|
-
config_accessor(:session_key) { '
|
15
|
+
config_accessor(:session_key) { 'user_id' }
|
16
16
|
|
17
17
|
# Convenience method to reset configuration
|
18
18
|
def self.reset_configuration!
|
@@ -20,6 +20,6 @@ module InstantLogin
|
|
20
20
|
config.user_mailer = nil
|
21
21
|
config.success_path = '/'
|
22
22
|
config.failure_path = '/'
|
23
|
-
config.session_key = '
|
23
|
+
config.session_key = 'user_id'
|
24
24
|
end
|
25
25
|
end
|