-
Notifications
You must be signed in to change notification settings - Fork 15
/
.byebug_history
256 lines (256 loc) · 5.68 KB
/
.byebug_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
c
n
s
n
s
order.generate_paxes
c
line_items
line_item.context.nil?
c
e
n
line_items.first.context
line_items.count
line_items
c
exit
'hello'.index('hello')
'hello'.index('helo')
params.except('product_type')
n
params
attr_option_types
n
prefix
n
s
n
s
params
c
key
key.index(prefix)
key.index(prefix).zero?
c
key.index(prefix).zero?
c
key.index(prefix).zero?
c
key.index(prefix).zero?
key.index(prefix)
key[prefix.length + 1..-1]
c
option_types
params
c
key[prefix.length + 1..-1]
prefix
option_types
value
key
continue!
context_option_values.first.option_value
context_option_values
s
n
s
find_option_value(option_type)
s
key
n
@params
params
option_value
@option_type
@product_type.context_option_types.count
@product_type.context_option_types
c
find_option_value(option_type)
s
key
continue!
sanitize_option_types_and_values(params)
c
continue!
continue
exit
s
n
Spree::OptionType.find(option_type) if option_type.is_a?(Integer)
s
n
s
c
option_type
c
option_type
c
option_type.is_a?(Integer)
Spree::OptionType.find(option_type) if option_type.is_a?(Integer)
s
c
context.context_option_values[1].option_value
context.context_option_values[0].option_value
context.context_option_values
@product_type.context_option_types
n
@product_type.context_option_types[0].option_values
@product_type.context_option_types
c
context_option_values[3].option_value
context_option_values[2].option_value
context_option_values[1].option_value
context_option_values[0].option_value
option_type.id
context_option_values.includes(option_value: :option_type).map { |cov| puts cov.option_value&.option_type_id }
context_option_values.includes(option_value: :option_type).find { |cov| cov.option_value&.option_type_id == option_type.id }
context_option_values
option_type
context_option_values.includes
s
find_existing_option_value(option_type)
n
s
n
s
c
context_option_values
c
context_option_values
s
n
s
find_option_value(option_type)
n
s
c
Spree::OptionType.find(option_type)
option_type.is_a?(Integer)
s
option_type
s
find_option_value(option_type)
n
s
c
find_option_value(option_type)
option_type
n
s
c
sanitize_option_types_and_values(params)
params
c
@context.get_temporal
@context.get_temporal_option_value('option_type_1')
@temporal
c
params
Spree::ProductType.last
Spree::ProductType.count
s
Spree::ProductType.last
Spree::ProductType.count
n
s
Spree::ProductType.find_by(name: prefix)
prefix
n
s
c
n
s
c
n
s
c
n
s
c
n
s
sanitize_option_types_and_values(params)
c
rate.rate_option_values.reload
rate.rate_option_values
c
rate_option_values.reload
rate_option_values.reload!
rate_option_values.count
Spree::RateOptionValue.count
Spree::RateOptionValue.all
Spree::RateOptionValue.where option_value_id: 4
Spree::OptionValue.find(4)
rate_option_values[-1].option_value
rate_option_values.joins("INNER JOIN spree_option_values on spree_rate_option_values.option_value_id = spree_option_values.id")
rate_option_values[-1].option_value
rate_option_values[-1]
rate_option_values
rate_option_values.joins(:option_value)
rate_option_values
rate_option_values.joins("INNER JOIN spree_option_values on spree_rate_option_values.option_value_id = spree_option_values.id")
rate_option_values.joins(:option_value)
rate_option_values
rate_option_values.joins(:option_value)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 1)
option_type
rate_option_values[1].option_value.option_type
rate_option_values[1].option_value
rate_option_values[1]
rate_option_values.where.not(date_value: nil)
rate_option_values.where(date_value: nil)
rate_option_values.where.not(date_value: nil)
rate_option_values
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 6)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 4)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 3)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 2)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 1)
Spree::OptionValue.find(1,2,3,4,6)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 3).first.option_value
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 3)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', 1)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', option_type.id)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id == ?', option_type.id)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id == ?', option_type.id).to_sql
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', option_type.id).to_sql
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', option_type.id)
option_type
option_type.id
Spree::OptionValue.find(1,2,3,4,6)
rate_option_values.pluck(:option_value_id)
rate_option_values
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', option_type.id)
rate_option_values.joins(:option_value).where('spree_option_values.option_type_id = ?', option_type.id).take
option_type
s
self.class
n
find_existing_option_value(option_type)
option_type
s
find_option_value(option_type)
n
s
c
e
n
option_type
n
s
rate.persisted_option_value('option_type_1')
rate.option_type_1
c
"Spree::#{option_type.attr_type.camelcase}OptionType".constantize.save(context_or_rate_option_value, value, option_type)
"Spree::#{option_type.attr_type.camelcase}OptionType".constantize
value
option_type
c
n
sanitize_option_types_and_values(params)
continue!
product_type.rate_option_types.first.name
product_type.rate_option_types
continue!
c