File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
lib/action_dispatch/journey/visualizer Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
``` ruby
19
19
send_stream(filename: " subscribers.csv" ) do |stream |
20
20
stream.writeln " email_address,updated_at"
21
-
21
+
22
22
@subscribers .find_each do |subscriber |
23
23
stream.writeln [ subscriber.email_address, subscriber.updated_at ].join(" ," )
24
24
end
25
25
end
26
26
```
27
-
27
+
28
28
* DHH *
29
29
30
30
* Add ` ActionController::Live::Buffer#writeln` to write a line to the stream with a newline included.
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ function match(input) {
116
116
117
117
if ( regexp_states [ state ] ) {
118
118
var slice_start = previous_start != null ? previous_start : start_index ;
119
-
119
+
120
120
for ( var key in regexp_states [ state ] ) {
121
121
var re = new RegExp ( "^" + key + "$" ) ;
122
122
@@ -143,7 +143,7 @@ function match(input) {
143
143
var state_parts = states [ key ] ;
144
144
var state = state_parts [ 0 ] ;
145
145
var slice_start = state_parts [ 1 ] ;
146
-
146
+
147
147
// we must ignore ones that are still accepting more data
148
148
if ( slice_start != null ) continue ;
149
149
Original file line number Diff line number Diff line change 9
9
the same name. The system will transparently encrypt these
10
10
attributes before saving them into the database and will
11
11
decrypt them when retrieving their values.
12
-
12
+
13
13
14
14
``` ruby
15
15
class Person < ApplicationRecord
You can’t perform that action at this time.
0 commit comments