maglev 0.0.2 → 0.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.
- data/lib/maglev/version.rb +1 -1
- metadata +43 -44
- data/config/initializers/devise.rb +0 -232
data/lib/maglev/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maglev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2012-08-18 00:00:00.000000000 Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &15087120 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: 3.2.8
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *15087120
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: haml
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &15086200 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,10 +32,10 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *15086200
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: cancan
|
|
38
|
-
requirement: &
|
|
38
|
+
requirement: &15084600 !ruby/object:Gem::Requirement
|
|
39
39
|
none: false
|
|
40
40
|
requirements:
|
|
41
41
|
- - ! '>='
|
|
@@ -43,10 +43,10 @@ dependencies:
|
|
|
43
43
|
version: '0'
|
|
44
44
|
type: :runtime
|
|
45
45
|
prerelease: false
|
|
46
|
-
version_requirements: *
|
|
46
|
+
version_requirements: *15084600
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: paperclip
|
|
49
|
-
requirement: &
|
|
49
|
+
requirement: &15083620 !ruby/object:Gem::Requirement
|
|
50
50
|
none: false
|
|
51
51
|
requirements:
|
|
52
52
|
- - ! '>='
|
|
@@ -54,10 +54,10 @@ dependencies:
|
|
|
54
54
|
version: '0'
|
|
55
55
|
type: :runtime
|
|
56
56
|
prerelease: false
|
|
57
|
-
version_requirements: *
|
|
57
|
+
version_requirements: *15083620
|
|
58
58
|
- !ruby/object:Gem::Dependency
|
|
59
59
|
name: bootstrap-sass
|
|
60
|
-
requirement: &
|
|
60
|
+
requirement: &15098140 !ruby/object:Gem::Requirement
|
|
61
61
|
none: false
|
|
62
62
|
requirements:
|
|
63
63
|
- - ! '>='
|
|
@@ -65,10 +65,10 @@ dependencies:
|
|
|
65
65
|
version: '0'
|
|
66
66
|
type: :runtime
|
|
67
67
|
prerelease: false
|
|
68
|
-
version_requirements: *
|
|
68
|
+
version_requirements: *15098140
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: compass-rails
|
|
71
|
-
requirement: &
|
|
71
|
+
requirement: &15096720 !ruby/object:Gem::Requirement
|
|
72
72
|
none: false
|
|
73
73
|
requirements:
|
|
74
74
|
- - ! '>='
|
|
@@ -76,10 +76,10 @@ dependencies:
|
|
|
76
76
|
version: '0'
|
|
77
77
|
type: :runtime
|
|
78
78
|
prerelease: false
|
|
79
|
-
version_requirements: *
|
|
79
|
+
version_requirements: *15096720
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: redis
|
|
82
|
-
requirement: &
|
|
82
|
+
requirement: &15095980 !ruby/object:Gem::Requirement
|
|
83
83
|
none: false
|
|
84
84
|
requirements:
|
|
85
85
|
- - ! '>='
|
|
@@ -87,10 +87,10 @@ dependencies:
|
|
|
87
87
|
version: '0'
|
|
88
88
|
type: :runtime
|
|
89
89
|
prerelease: false
|
|
90
|
-
version_requirements: *
|
|
90
|
+
version_requirements: *15095980
|
|
91
91
|
- !ruby/object:Gem::Dependency
|
|
92
92
|
name: paper_trail
|
|
93
|
-
requirement: &
|
|
93
|
+
requirement: &15107260 !ruby/object:Gem::Requirement
|
|
94
94
|
none: false
|
|
95
95
|
requirements:
|
|
96
96
|
- - ! '>='
|
|
@@ -98,10 +98,10 @@ dependencies:
|
|
|
98
98
|
version: '0'
|
|
99
99
|
type: :runtime
|
|
100
100
|
prerelease: false
|
|
101
|
-
version_requirements: *
|
|
101
|
+
version_requirements: *15107260
|
|
102
102
|
- !ruby/object:Gem::Dependency
|
|
103
103
|
name: fog
|
|
104
|
-
requirement: &
|
|
104
|
+
requirement: &15106660 !ruby/object:Gem::Requirement
|
|
105
105
|
none: false
|
|
106
106
|
requirements:
|
|
107
107
|
- - ! '>='
|
|
@@ -109,10 +109,10 @@ dependencies:
|
|
|
109
109
|
version: '0'
|
|
110
110
|
type: :runtime
|
|
111
111
|
prerelease: false
|
|
112
|
-
version_requirements: *
|
|
112
|
+
version_requirements: *15106660
|
|
113
113
|
- !ruby/object:Gem::Dependency
|
|
114
114
|
name: friendly_id
|
|
115
|
-
requirement: &
|
|
115
|
+
requirement: &15106060 !ruby/object:Gem::Requirement
|
|
116
116
|
none: false
|
|
117
117
|
requirements:
|
|
118
118
|
- - ! '>='
|
|
@@ -120,10 +120,10 @@ dependencies:
|
|
|
120
120
|
version: '0'
|
|
121
121
|
type: :runtime
|
|
122
122
|
prerelease: false
|
|
123
|
-
version_requirements: *
|
|
123
|
+
version_requirements: *15106060
|
|
124
124
|
- !ruby/object:Gem::Dependency
|
|
125
125
|
name: jquery-rails
|
|
126
|
-
requirement: &
|
|
126
|
+
requirement: &15105480 !ruby/object:Gem::Requirement
|
|
127
127
|
none: false
|
|
128
128
|
requirements:
|
|
129
129
|
- - ! '>='
|
|
@@ -131,10 +131,10 @@ dependencies:
|
|
|
131
131
|
version: '0'
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
|
-
version_requirements: *
|
|
134
|
+
version_requirements: *15105480
|
|
135
135
|
- !ruby/object:Gem::Dependency
|
|
136
136
|
name: sass-rails
|
|
137
|
-
requirement: &
|
|
137
|
+
requirement: &15103960 !ruby/object:Gem::Requirement
|
|
138
138
|
none: false
|
|
139
139
|
requirements:
|
|
140
140
|
- - ! '>='
|
|
@@ -142,10 +142,10 @@ dependencies:
|
|
|
142
142
|
version: '0'
|
|
143
143
|
type: :runtime
|
|
144
144
|
prerelease: false
|
|
145
|
-
version_requirements: *
|
|
145
|
+
version_requirements: *15103960
|
|
146
146
|
- !ruby/object:Gem::Dependency
|
|
147
147
|
name: coffee-rails
|
|
148
|
-
requirement: &
|
|
148
|
+
requirement: &15102640 !ruby/object:Gem::Requirement
|
|
149
149
|
none: false
|
|
150
150
|
requirements:
|
|
151
151
|
- - ! '>='
|
|
@@ -153,10 +153,10 @@ dependencies:
|
|
|
153
153
|
version: '0'
|
|
154
154
|
type: :runtime
|
|
155
155
|
prerelease: false
|
|
156
|
-
version_requirements: *
|
|
156
|
+
version_requirements: *15102640
|
|
157
157
|
- !ruby/object:Gem::Dependency
|
|
158
158
|
name: rspec-rails
|
|
159
|
-
requirement: &
|
|
159
|
+
requirement: &15101580 !ruby/object:Gem::Requirement
|
|
160
160
|
none: false
|
|
161
161
|
requirements:
|
|
162
162
|
- - ! '>='
|
|
@@ -164,10 +164,10 @@ dependencies:
|
|
|
164
164
|
version: '0'
|
|
165
165
|
type: :development
|
|
166
166
|
prerelease: false
|
|
167
|
-
version_requirements: *
|
|
167
|
+
version_requirements: *15101580
|
|
168
168
|
- !ruby/object:Gem::Dependency
|
|
169
169
|
name: guard-rails
|
|
170
|
-
requirement: &
|
|
170
|
+
requirement: &15114320 !ruby/object:Gem::Requirement
|
|
171
171
|
none: false
|
|
172
172
|
requirements:
|
|
173
173
|
- - ! '>='
|
|
@@ -175,10 +175,10 @@ dependencies:
|
|
|
175
175
|
version: '0'
|
|
176
176
|
type: :development
|
|
177
177
|
prerelease: false
|
|
178
|
-
version_requirements: *
|
|
178
|
+
version_requirements: *15114320
|
|
179
179
|
- !ruby/object:Gem::Dependency
|
|
180
180
|
name: guard-rspec
|
|
181
|
-
requirement: &
|
|
181
|
+
requirement: &15109400 !ruby/object:Gem::Requirement
|
|
182
182
|
none: false
|
|
183
183
|
requirements:
|
|
184
184
|
- - ! '>='
|
|
@@ -186,10 +186,10 @@ dependencies:
|
|
|
186
186
|
version: '0'
|
|
187
187
|
type: :development
|
|
188
188
|
prerelease: false
|
|
189
|
-
version_requirements: *
|
|
189
|
+
version_requirements: *15109400
|
|
190
190
|
- !ruby/object:Gem::Dependency
|
|
191
191
|
name: factory_girl_rails
|
|
192
|
-
requirement: &
|
|
192
|
+
requirement: &15955260 !ruby/object:Gem::Requirement
|
|
193
193
|
none: false
|
|
194
194
|
requirements:
|
|
195
195
|
- - ! '>='
|
|
@@ -197,10 +197,10 @@ dependencies:
|
|
|
197
197
|
version: '0'
|
|
198
198
|
type: :development
|
|
199
199
|
prerelease: false
|
|
200
|
-
version_requirements: *
|
|
200
|
+
version_requirements: *15955260
|
|
201
201
|
- !ruby/object:Gem::Dependency
|
|
202
202
|
name: capybara
|
|
203
|
-
requirement: &
|
|
203
|
+
requirement: &15954760 !ruby/object:Gem::Requirement
|
|
204
204
|
none: false
|
|
205
205
|
requirements:
|
|
206
206
|
- - ! '>='
|
|
@@ -208,10 +208,10 @@ dependencies:
|
|
|
208
208
|
version: '0'
|
|
209
209
|
type: :development
|
|
210
210
|
prerelease: false
|
|
211
|
-
version_requirements: *
|
|
211
|
+
version_requirements: *15954760
|
|
212
212
|
- !ruby/object:Gem::Dependency
|
|
213
213
|
name: pg
|
|
214
|
-
requirement: &
|
|
214
|
+
requirement: &15954120 !ruby/object:Gem::Requirement
|
|
215
215
|
none: false
|
|
216
216
|
requirements:
|
|
217
217
|
- - ! '>='
|
|
@@ -219,10 +219,10 @@ dependencies:
|
|
|
219
219
|
version: '0'
|
|
220
220
|
type: :development
|
|
221
221
|
prerelease: false
|
|
222
|
-
version_requirements: *
|
|
222
|
+
version_requirements: *15954120
|
|
223
223
|
- !ruby/object:Gem::Dependency
|
|
224
224
|
name: puma
|
|
225
|
-
requirement: &
|
|
225
|
+
requirement: &15953340 !ruby/object:Gem::Requirement
|
|
226
226
|
none: false
|
|
227
227
|
requirements:
|
|
228
228
|
- - ! '>='
|
|
@@ -230,7 +230,7 @@ dependencies:
|
|
|
230
230
|
version: '0'
|
|
231
231
|
type: :development
|
|
232
232
|
prerelease: false
|
|
233
|
-
version_requirements: *
|
|
233
|
+
version_requirements: *15953340
|
|
234
234
|
description: Maglev is a simple CMS mountable engine to quickly add intelligent pages
|
|
235
235
|
to your site
|
|
236
236
|
email:
|
|
@@ -248,7 +248,6 @@ files:
|
|
|
248
248
|
- app/views/layouts/maglev/application.html.erb
|
|
249
249
|
- app/controllers/maglev/pages_controller.rb
|
|
250
250
|
- app/controllers/maglev/application_controller.rb
|
|
251
|
-
- config/initializers/devise.rb
|
|
252
251
|
- config/routes.rb
|
|
253
252
|
- config/locales/devise.en.yml
|
|
254
253
|
- db/migrate/20120814002939_create_versions.rb
|
|
@@ -273,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
273
272
|
version: '0'
|
|
274
273
|
segments:
|
|
275
274
|
- 0
|
|
276
|
-
hash:
|
|
275
|
+
hash: 1000667122038659149
|
|
277
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
278
277
|
none: false
|
|
279
278
|
requirements:
|
|
@@ -282,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
282
281
|
version: '0'
|
|
283
282
|
segments:
|
|
284
283
|
- 0
|
|
285
|
-
hash:
|
|
284
|
+
hash: 1000667122038659149
|
|
286
285
|
requirements: []
|
|
287
286
|
rubyforge_project:
|
|
288
287
|
rubygems_version: 1.8.11
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# Use this hook to configure devise mailer, warden hooks and so forth.
|
|
2
|
-
# Many of these configuration options can be set straight in your model.
|
|
3
|
-
Devise.setup do |config|
|
|
4
|
-
# ==> Mailer Configuration
|
|
5
|
-
# Configure the e-mail address which will be shown in Devise::Mailer,
|
|
6
|
-
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
|
7
|
-
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
|
8
|
-
|
|
9
|
-
# Configure the class responsible to send e-mails.
|
|
10
|
-
# config.mailer = "Devise::Mailer"
|
|
11
|
-
|
|
12
|
-
# ==> ORM configuration
|
|
13
|
-
# Load and configure the ORM. Supports :active_record (default) and
|
|
14
|
-
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
|
15
|
-
# available as additional gems.
|
|
16
|
-
require 'devise/orm/active_record'
|
|
17
|
-
|
|
18
|
-
# ==> Configuration for any authentication mechanism
|
|
19
|
-
# Configure which keys are used when authenticating a user. The default is
|
|
20
|
-
# just :email. You can configure it to use [:username, :subdomain], so for
|
|
21
|
-
# authenticating a user, both parameters are required. Remember that those
|
|
22
|
-
# parameters are used only when authenticating and not when retrieving from
|
|
23
|
-
# session. If you need permissions, you should implement that in a before filter.
|
|
24
|
-
# You can also supply a hash where the value is a boolean determining whether
|
|
25
|
-
# or not authentication should be aborted when the value is not present.
|
|
26
|
-
# config.authentication_keys = [ :email ]
|
|
27
|
-
|
|
28
|
-
# Configure parameters from the request object used for authentication. Each entry
|
|
29
|
-
# given should be a request method and it will automatically be passed to the
|
|
30
|
-
# find_for_authentication method and considered in your model lookup. For instance,
|
|
31
|
-
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
|
32
|
-
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
|
33
|
-
# config.request_keys = []
|
|
34
|
-
|
|
35
|
-
# Configure which authentication keys should be case-insensitive.
|
|
36
|
-
# These keys will be downcased upon creating or modifying a user and when used
|
|
37
|
-
# to authenticate or find a user. Default is :email.
|
|
38
|
-
config.case_insensitive_keys = [ :email ]
|
|
39
|
-
|
|
40
|
-
# Configure which authentication keys should have whitespace stripped.
|
|
41
|
-
# These keys will have whitespace before and after removed upon creating or
|
|
42
|
-
# modifying a user and when used to authenticate or find a user. Default is :email.
|
|
43
|
-
config.strip_whitespace_keys = [ :email ]
|
|
44
|
-
|
|
45
|
-
# Tell if authentication through request.params is enabled. True by default.
|
|
46
|
-
# It can be set to an array that will enable params authentication only for the
|
|
47
|
-
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
|
48
|
-
# enable it only for database (email + password) authentication.
|
|
49
|
-
# config.params_authenticatable = true
|
|
50
|
-
|
|
51
|
-
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
|
52
|
-
# It can be set to an array that will enable http authentication only for the
|
|
53
|
-
# given strategies, for example, `config.http_authenticatable = [:token]` will
|
|
54
|
-
# enable it only for token authentication.
|
|
55
|
-
# config.http_authenticatable = false
|
|
56
|
-
|
|
57
|
-
# If http headers should be returned for AJAX requests. True by default.
|
|
58
|
-
# config.http_authenticatable_on_xhr = true
|
|
59
|
-
|
|
60
|
-
# The realm used in Http Basic Authentication. "Application" by default.
|
|
61
|
-
# config.http_authentication_realm = "Application"
|
|
62
|
-
|
|
63
|
-
# It will change confirmation, password recovery and other workflows
|
|
64
|
-
# to behave the same regardless if the e-mail provided was right or wrong.
|
|
65
|
-
# Does not affect registerable.
|
|
66
|
-
# config.paranoid = true
|
|
67
|
-
|
|
68
|
-
# By default Devise will store the user in session. You can skip storage for
|
|
69
|
-
# :http_auth and :token_auth by adding those symbols to the array below.
|
|
70
|
-
# Notice that if you are skipping storage for all authentication paths, you
|
|
71
|
-
# may want to disable generating routes to Devise's sessions controller by
|
|
72
|
-
# passing :skip => :sessions to `devise_for` in your config/routes.rb
|
|
73
|
-
config.skip_session_storage = [:http_auth]
|
|
74
|
-
|
|
75
|
-
# ==> Configuration for :database_authenticatable
|
|
76
|
-
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
|
77
|
-
# using other encryptors, it sets how many times you want the password re-encrypted.
|
|
78
|
-
#
|
|
79
|
-
# Limiting the stretches to just one in testing will increase the performance of
|
|
80
|
-
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
|
81
|
-
# a value less than 10 in other environments.
|
|
82
|
-
config.stretches = Rails.env.test? ? 1 : 10
|
|
83
|
-
|
|
84
|
-
# Setup a pepper to generate the encrypted password.
|
|
85
|
-
# config.pepper = "248af56a673d7ee97b9d1f4387072c92e4d278b1545a797befde05cecd5e4da9c66400e1622423675fcf710819f032918a6cab3ebd6db0bf2807b1ff711c9aa7"
|
|
86
|
-
|
|
87
|
-
# ==> Configuration for :confirmable
|
|
88
|
-
# A period that the user is allowed to access the website even without
|
|
89
|
-
# confirming his account. For instance, if set to 2.days, the user will be
|
|
90
|
-
# able to access the website for two days without confirming his account,
|
|
91
|
-
# access will be blocked just in the third day. Default is 0.days, meaning
|
|
92
|
-
# the user cannot access the website without confirming his account.
|
|
93
|
-
# config.allow_unconfirmed_access_for = 2.days
|
|
94
|
-
|
|
95
|
-
# If true, requires any email changes to be confirmed (exactly the same way as
|
|
96
|
-
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
|
97
|
-
# db field (see migrations). Until confirmed new email is stored in
|
|
98
|
-
# unconfirmed email column, and copied to email column on successful confirmation.
|
|
99
|
-
config.reconfirmable = true
|
|
100
|
-
|
|
101
|
-
# Defines which key will be used when confirming an account
|
|
102
|
-
# config.confirmation_keys = [ :email ]
|
|
103
|
-
|
|
104
|
-
# ==> Configuration for :rememberable
|
|
105
|
-
# The time the user will be remembered without asking for credentials again.
|
|
106
|
-
# config.remember_for = 2.weeks
|
|
107
|
-
|
|
108
|
-
# If true, extends the user's remember period when remembered via cookie.
|
|
109
|
-
# config.extend_remember_period = false
|
|
110
|
-
|
|
111
|
-
# Options to be passed to the created cookie. For instance, you can set
|
|
112
|
-
# :secure => true in order to force SSL only cookies.
|
|
113
|
-
# config.rememberable_options = {}
|
|
114
|
-
|
|
115
|
-
# ==> Configuration for :validatable
|
|
116
|
-
# Range for password length. Default is 6..128.
|
|
117
|
-
# config.password_length = 6..128
|
|
118
|
-
|
|
119
|
-
# Email regex used to validate email formats. It simply asserts that
|
|
120
|
-
# an one (and only one) @ exists in the given string. This is mainly
|
|
121
|
-
# to give user feedback and not to assert the e-mail validity.
|
|
122
|
-
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
|
123
|
-
|
|
124
|
-
# ==> Configuration for :timeoutable
|
|
125
|
-
# The time you want to timeout the user session without activity. After this
|
|
126
|
-
# time the user will be asked for credentials again. Default is 30 minutes.
|
|
127
|
-
# config.timeout_in = 30.minutes
|
|
128
|
-
|
|
129
|
-
# If true, expires auth token on session timeout.
|
|
130
|
-
# config.expire_auth_token_on_timeout = false
|
|
131
|
-
|
|
132
|
-
# ==> Configuration for :lockable
|
|
133
|
-
# Defines which strategy will be used to lock an account.
|
|
134
|
-
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
|
135
|
-
# :none = No lock strategy. You should handle locking by yourself.
|
|
136
|
-
# config.lock_strategy = :failed_attempts
|
|
137
|
-
|
|
138
|
-
# Defines which key will be used when locking and unlocking an account
|
|
139
|
-
# config.unlock_keys = [ :email ]
|
|
140
|
-
|
|
141
|
-
# Defines which strategy will be used to unlock an account.
|
|
142
|
-
# :email = Sends an unlock link to the user email
|
|
143
|
-
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
|
144
|
-
# :both = Enables both strategies
|
|
145
|
-
# :none = No unlock strategy. You should handle unlocking by yourself.
|
|
146
|
-
# config.unlock_strategy = :both
|
|
147
|
-
|
|
148
|
-
# Number of authentication tries before locking an account if lock_strategy
|
|
149
|
-
# is failed attempts.
|
|
150
|
-
# config.maximum_attempts = 20
|
|
151
|
-
|
|
152
|
-
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
|
153
|
-
# config.unlock_in = 1.hour
|
|
154
|
-
|
|
155
|
-
# ==> Configuration for :recoverable
|
|
156
|
-
#
|
|
157
|
-
# Defines which key will be used when recovering the password for an account
|
|
158
|
-
# config.reset_password_keys = [ :email ]
|
|
159
|
-
|
|
160
|
-
# Time interval you can reset your password with a reset password key.
|
|
161
|
-
# Don't put a too small interval or your users won't have the time to
|
|
162
|
-
# change their passwords.
|
|
163
|
-
config.reset_password_within = 6.hours
|
|
164
|
-
|
|
165
|
-
# ==> Configuration for :encryptable
|
|
166
|
-
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
|
167
|
-
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
|
168
|
-
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
|
169
|
-
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
|
170
|
-
# REST_AUTH_SITE_KEY to pepper)
|
|
171
|
-
# config.encryptor = :sha512
|
|
172
|
-
|
|
173
|
-
# ==> Configuration for :token_authenticatable
|
|
174
|
-
# Defines name of the authentication token params key
|
|
175
|
-
# config.token_authentication_key = :auth_token
|
|
176
|
-
|
|
177
|
-
# ==> Scopes configuration
|
|
178
|
-
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
|
179
|
-
# "users/sessions/new". It's turned off by default because it's slower if you
|
|
180
|
-
# are using only default views.
|
|
181
|
-
# config.scoped_views = false
|
|
182
|
-
|
|
183
|
-
# Configure the default scope given to Warden. By default it's the first
|
|
184
|
-
# devise role declared in your routes (usually :user).
|
|
185
|
-
# config.default_scope = :user
|
|
186
|
-
|
|
187
|
-
# Set this configuration to false if you want /users/sign_out to sign out
|
|
188
|
-
# only the current scope. By default, Devise signs out all scopes.
|
|
189
|
-
# config.sign_out_all_scopes = true
|
|
190
|
-
|
|
191
|
-
# ==> Navigation configuration
|
|
192
|
-
# Lists the formats that should be treated as navigational. Formats like
|
|
193
|
-
# :html, should redirect to the sign in page when the user does not have
|
|
194
|
-
# access, but formats like :xml or :json, should return 401.
|
|
195
|
-
#
|
|
196
|
-
# If you have any extra navigational formats, like :iphone or :mobile, you
|
|
197
|
-
# should add them to the navigational formats lists.
|
|
198
|
-
#
|
|
199
|
-
# The "*/*" below is required to match Internet Explorer requests.
|
|
200
|
-
# config.navigational_formats = ["*/*", :html]
|
|
201
|
-
|
|
202
|
-
# The default HTTP method used to sign out a resource. Default is :delete.
|
|
203
|
-
config.sign_out_via = :delete
|
|
204
|
-
|
|
205
|
-
# ==> OmniAuth
|
|
206
|
-
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
|
207
|
-
# up on your models and hooks.
|
|
208
|
-
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
|
209
|
-
|
|
210
|
-
# ==> Warden configuration
|
|
211
|
-
# If you want to use other strategies, that are not supported by Devise, or
|
|
212
|
-
# change the failure app, you can configure them inside the config.warden block.
|
|
213
|
-
#
|
|
214
|
-
# config.warden do |manager|
|
|
215
|
-
# manager.intercept_401 = false
|
|
216
|
-
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
|
217
|
-
# end
|
|
218
|
-
|
|
219
|
-
# ==> Mountable engine configurations
|
|
220
|
-
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
|
221
|
-
# is mountable, there are some extra configurations to be taken into account.
|
|
222
|
-
# The following options are available, assuming the engine is mounted as:
|
|
223
|
-
#
|
|
224
|
-
# mount MyEngine, at: "/my_engine"
|
|
225
|
-
#
|
|
226
|
-
# The router that invoked `devise_for`, in the example above, would be:
|
|
227
|
-
# config.router_name = :my_engine
|
|
228
|
-
#
|
|
229
|
-
# When using omniauth, Devise cannot automatically set Omniauth path,
|
|
230
|
-
# so you need to do it manually. For the users scope, it would be:
|
|
231
|
-
# config.omniauth_path_prefix = "/my_engine/users/auth"
|
|
232
|
-
end
|