forked from lucyfox4131/the_pivot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.byebug_history
181 lines (181 loc) · 2.41 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
exit
charity_type
exit
online_charity
exit
platform_admin.platform_admin?
platform_admin.roles
platform_admin.user_roles
platform_admin
exit
current_user.user_roles.first.charity_id
current_user
params
@charity
exit
current_user.user_roles
current_user
current_usre
@charity
exit
current_user.user_roles
current_user
current_usr
exit
current_user.user_roles
current_user
@charity
exit
user.charity_admin?
user.registered_user?
user.user_roles
user_role
role
user.role.name
user.role
user.user_roles
user.user_role
user.role
Charity.find(params[:id])
params
@charity
exit
user_role.first.charity_id
user_role.charity_id
user_role.first
user_role
role
user_role.charity_id
user_role
role
current_user
user
exit
next
:family
Family.all
exit
donation1
exit
donation1
exit
cart_item.quantity
cart_item.supply_item
current_user.role
next
current_user
exit
self.supply_items.reduce(0) { |sum, supply_item| sum + (supply_item.supply.value * supply_item.quantity)}.to_f
self.supply_items.reduce(0) { |sum, supply_item| sum + (supply_item.supply.value * supply_item.quantity)}
end
sum + (supply_item.supply.value * supply_item.quantity)
self. supply_items.reduce(0) do |sum, supply_item|
supply_item.supply.value * supply_item.quantity
supply_item = self.supply_items.first
self.supply_items
self
family
exit
@family
family
famiy
exit
@family
family
exit
DonationItem.where(supply_item: supply_item)
supply_item
supply_items
exit
donation_item1
exit
donation_item1
family1
exit
!!
contents.supply_items.id
contents.supply_item.sid
contents.supply_item.id
supply_item.id
exit
supply_item1.id
supply_item.id
exit
end
SupplyItem.find("1")
item_id
exit
!!!
supply_item.supply.name
supply_item.supply_name
next
supply_item.supply.name
supply_item.quantity_remaining
supply_item
next
@family
supply_item
exit
@cart_items
exit
session[:cart]
session
@cart.contents
exit
supply_item_quantity
supply_item_id
params
exit
@cart.contents
exit
@cart.contents
exit
@cart.contents
@cart.contents = {}
@cart.contents
session.destroy
@cart.contents
exit
@cart.contents = {}
@cart.contents
exit
session.destroy
exit
params
exit
params
exit
params
exit
!!!
contents
contents.delete(item_id)
item_id
contents
contents.delete(:item_id)
contents
exit
@cart
params
exit
params
exit
params
exit
@supply_item
supply_item
supply_item.id
params
exit
params
exit
@family.supply_items
@family.create_supply_items
@family
@family.supply_items
exit
Supply.all
exit
Supply.all
next
supply.name