File tree Expand file tree Collapse file tree 4 files changed +21
-17
lines changed Expand file tree Collapse file tree 4 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 109
109
coderay (1.1.3 )
110
110
coercible (1.0.0 )
111
111
descendants_tracker (~> 0.0.1 )
112
- concurrent-ruby (1.3.4 )
112
+ concurrent-ruby (1.3.5 )
113
113
connection_pool (2.5.0 )
114
114
coveralls_reborn (0.28.0 )
115
115
simplecov (~> 0.22.0 )
164
164
csv
165
165
mini_mime (>= 1.0.0 )
166
166
multi_xml (>= 0.5.2 )
167
- i18n (1.14.6 )
167
+ i18n (1.14.7 )
168
168
concurrent-ruby (~> 1.0 )
169
169
ice_nine (0.11.2 )
170
170
io-console (0.8.0 )
@@ -201,12 +201,12 @@ GEM
201
201
net-smtp (0.5.0 )
202
202
net-protocol
203
203
nio4r (2.7.4 )
204
- nokogiri (1.18.1 )
204
+ nokogiri (1.18.2 )
205
205
mini_portile2 (~> 2.8.2 )
206
206
racc (~> 1.4 )
207
207
ostruct (0.6.1 )
208
208
parallel (1.26.3 )
209
- parser (3.3.6 .0 )
209
+ parser (3.3.7 .0 )
210
210
ast (~> 2.4.1 )
211
211
racc
212
212
pg (1.5.9 )
216
216
pry-byebug (3.10.1 )
217
217
byebug (~> 11.0 )
218
218
pry (>= 0.13 , < 0.15 )
219
- psych (5.2.2 )
219
+ psych (5.2.3 )
220
220
date
221
221
stringio
222
222
public_suffix (6.0.1 )
268
268
rb-fsevent (0.11.2 )
269
269
rb-inotify (0.11.1 )
270
270
ffi (~> 1.0 )
271
- rdoc (6.10 .0 )
271
+ rdoc (6.11 .0 )
272
272
psych (>= 4.0.0 )
273
273
regexp_parser (2.10.0 )
274
274
reline (0.6.0 )
311
311
rubocop (~> 1.41 )
312
312
rubocop-factory_bot (2.26.1 )
313
313
rubocop (~> 1.61 )
314
- rubocop-rails (2.28 .0 )
314
+ rubocop-rails (2.29 .0 )
315
315
activesupport (>= 4.2.0 )
316
316
rack (>= 1.1 )
317
317
rubocop (>= 1.52.0 , < 2.0 )
350
350
activesupport (>= 6.1 )
351
351
sprockets (>= 3.0.0 )
352
352
stringio (3.1.2 )
353
- stripe (13.3.0 )
353
+ stripe (13.3.1 )
354
354
sync (0.5.0 )
355
355
term-ansicolor (1.11.2 )
356
356
tins (~> 1.0 )
365
365
concurrent-ruby (~> 1.0 )
366
366
uglifier (4.2.1 )
367
367
execjs (>= 0.3.0 , < 3 )
368
- unicode-display_width (3.1.3 )
368
+ unicode-display_width (3.1.4 )
369
369
unicode-emoji (~> 4.0 , >= 4.0.4 )
370
370
unicode-emoji (4.0.4 )
371
371
uri (1.0.2 )
Original file line number Diff line number Diff line change @@ -41,14 +41,18 @@ def check_signups_enabled
41
41
end
42
42
43
43
def password_params
44
- params . require ( :user )
45
- . permit ( :password_challenge , :password , :password_confirmation )
44
+ params
45
+ . expect ( user : [
46
+ :password_challenge ,
47
+ :password ,
48
+ :password_confirmation
49
+ ] )
46
50
end
47
51
48
52
def user_params
49
- params . require ( :user )
50
- . permit ( : username, :password , :password_confirmation )
51
- . merge ( admin : User . none? )
52
- . to_h . symbolize_keys
53
+ params
54
+ . expect ( user : [ : username, :password , :password_confirmation ] )
55
+ . merge ( admin : User . none? )
56
+ . to_h . symbolize_keys
53
57
end
54
58
end
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ def update
22
22
private
23
23
24
24
def user_params
25
- params . require ( : user) . permit ( : username, :password_challenge , :stories_order )
25
+ params . expect ( user : [ : username, :password_challenge , :stories_order ] )
26
26
end
27
27
end
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ def update
17
17
private
18
18
19
19
def setting_params
20
- params . require ( : setting) . permit ( : enabled)
20
+ params . expect ( setting : [ : enabled] )
21
21
end
22
22
end
You can’t perform that action at this time.
0 commit comments