Showing /home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/addresses/_fields.haml where line #9 raised:
undefined method `countries_options' for #<#<Class:0x00565390258a70>:0x005653935771b8>
Extracted source (around line #9):
7
8
9
10
11
12
|
.form-group
= field.input :country_id, collection: countries_options(@countries),
include_blank: t('simple_form.placeholders.address.country'),
input_html: { id: "country_id_#{type}_address", class: 'select-country' }
|
Extracted source (around line #159):
157
158
159
160
161
162
|
instrument("!render_template".freeze) do
compile!(view)
view.send(method_name, locals, buffer, &block)
end
rescue => e
handle_render_error(view, e)
|
Extracted source (around line #166):
164
165
166
167
168
169
|
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
end
|
Extracted source (around line #354):
352
353
354
355
356
357
|
case action
when "!render_template".freeze
ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, payload, &block)
else
ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, payload, &block)
end
|
Extracted source (around line #157):
155
156
157
158
159
160
|
# consume this in production. This is only slow if it's being listened to.
def render(view, locals, buffer=nil, &block)
instrument("!render_template".freeze) do
compile!(view)
view.send(method_name, locals, buffer, &block)
end
|
Extracted source (around line #343):
341
342
343
344
345
346
|
locals[as] = object if @has_object
content = @template.render(view, locals) do |*name|
view._layout_for(*name, &block)
end
|
Extracted source (around line #311):
309
310
311
312
313
314
|
else
instrument(:partial) do
render_partial
end
end
end
|
Extracted source (around line #42):
40
41
42
43
44
45
|
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options) do |payload|
yield payload
end
end
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #21):
19
20
21
22
23
24
|
listeners_state = start name, payload
begin
yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
payload[:exception_object] = e
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #41):
39
40
41
42
43
44
|
options[:identifier] ||= (@template && @template.identifier) || @path
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options) do |payload|
yield payload
end
end
|
Extracted source (around line #310):
308
309
310
311
312
313
|
render_collection
else
instrument(:partial) do
render_partial
end
end
|
Extracted source (around line #47):
45
46
47
48
49
50
|
# Direct access to partial rendering.
def render_partial(context, options, &block) #:nodoc:
PartialRenderer.new(@lookup_context).render(context, options, block)
end
end
end
|
Extracted source (around line #35):
33
34
35
36
37
38
|
end
else
view_renderer.render_partial(self, :partial => options, :locals => locals, &block)
end
end
|
Extracted source (around line #10):
8
9
10
11
12
13
|
# sub-render.
if is_haml? && !(options.is_a?(Hash) && options[:layout] && block_given?)
return non_haml { render_without_haml(*args, &block) }
end
render_without_haml(*args, &block)
end
|
Extracted source (around line #89):
87
88
89
90
91
92
|
was_active = @haml_buffer.active?
@haml_buffer.active = false
yield
ensure
@haml_buffer.active = was_active
end
|
Extracted source (around line #10):
8
9
10
11
12
13
|
# sub-render.
if is_haml? && !(options.is_a?(Hash) && options[:layout] && block_given?)
return non_haml { render_without_haml(*args, &block) }
end
render_without_haml(*args, &block)
end
|
Extracted source (around line #20):
18
19
20
21
22
23
|
#billing_address
= field.simple_fields_for :billing, @billing do |item_field|
= render 'corzinus/addresses/fields', field: item_field, type: 'billing'
.col-md-5.col-md-offset-1
.visible-xs.visible-sm
|
Extracted source (around line #368):
366
367
368
369
370
371
|
haml_buffer.capture_position = position
value = block.call(*args)
captured = haml_buffer.buffer.slice!(position..-1)
|
Extracted source (around line #608):
606
607
608
609
610
611
|
old_buffer.active, old_was_active = false, old_buffer.active? if old_buffer
@haml_buffer.active, was_active = true, @haml_buffer.active?
yield
ensure
@haml_buffer.active = was_active
old_buffer.active = old_was_active if old_buffer
|
Extracted source (around line #364):
362
363
364
365
366
367
|
def capture_haml(*args, &block)
buffer = eval('if defined? _hamlout then _hamlout else nil end', block.binding) || haml_buffer
with_haml_buffer(buffer) do
position = haml_buffer.buffer.length
haml_buffer.capture_position = position
|
Extracted source (around line #61):
59
60
61
62
63
64
|
# Output is always HTML safe
def capture_haml_with_haml_xss(*args, &block)
Haml::Util.html_safe(capture_haml_without_haml_xss(*args, &block))
end
# Input is escaped
|
Extracted source (around line #45):
43
44
45
46
47
48
|
_hamlout = _hamlout = eval('_hamlout', block.binding) # Necessary since capture_haml checks _hamlout
str = capture_haml(*args, &block)
# NonCattingString is present in Rails less than 3.1.0. When support
# for 3.0 is dropped, this can be removed.
|
Extracted source (around line #1926):
1924
1925
1926
1927
1928
1929
|
@template.fields_for(name, object, fields_options) do |f|
output = @template.capture(f, &block)
output.concat f.hidden_field(:id) if output && emit_hidden_id && !f.emitted_hidden_id?
output
end
|
Extracted source (around line #39):
37
38
39
40
41
42
|
def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
ERB::Util.html_escape string
end
|
Extracted source (around line #203):
201
202
203
204
205
206
|
end
self.output_buffer, old_buffer = buf, output_buffer
yield
output_buffer
ensure
self.output_buffer = old_buffer
|
Extracted source (around line #5):
3
4
5
6
7
8
|
module CaptureHelper
def with_output_buffer_with_haml_xss(*args, &block)
res = with_output_buffer_without_haml_xss(*args, &block)
case res
when Array; res.map {|s| Haml::Util.html_safe(s)}
when String; Haml::Util.html_safe(res)
|
Extracted source (around line #39):
37
38
39
40
41
42
|
def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
ERB::Util.html_escape string
end
|
Extracted source (around line #52):
50
51
52
53
54
55
|
return str
else
capture_without_haml(*args, &block)
end
end
alias_method :capture_without_haml, :capture
|
Extracted source (around line #720):
718
719
720
721
722
723
|
def fields_for(record_name, record_object = nil, options = {}, &block)
builder = instantiate_builder(record_name, record_object, options)
capture(builder, &block)
end
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
|
Extracted source (around line #1925):
1923
1924
1925
1926
1927
1928
|
}
@template.fields_for(name, object, fields_options) do |f|
output = @template.capture(f, &block)
output.concat f.hidden_field(:id) if output && emit_hidden_id && !f.emitted_hidden_id?
output
|
Extracted source (around line #1915):
1913
1914
1915
1916
1917
1918
|
output
elsif association
fields_for_nested_model(name, association, options, block)
end
end
|
Extracted source (around line #1561):
1559
1560
1561
1562
1563
1564
|
when String, Symbol
if nested_attributes_association?(record_name)
return fields_for_with_nested_attributes(record_name, record_object, fields_options, block)
end
else
record_object = record_name.is_a?(Array) ? record_name.last : record_name
|
Extracted source (around line #27):
25
26
27
28
29
30
|
options[:builder] ||= SimpleForm::FormBuilder
end
fields_for(*args, options, &block)
end
end
end
|
Extracted source (around line #19):
17
18
19
20
21
22
|
#billing_address
= field.simple_fields_for :billing, @billing do |item_field|
= render 'corzinus/addresses/fields', field: item_field, type: 'billing'
.col-md-5.col-md-offset-1
|
Extracted source (around line #137):
135
136
137
138
139
140
|
if wrap_block
oldproc = proc
proc = proc {|*subargs| with_tabs(1) {oldproc.call(*subargs)}}
end
res = form_for_without_haml(object_name, *args, &proc)
res << "\n" if wrap_block
|
Extracted source (around line #278):
276
277
278
279
280
281
|
old_tabs = haml_buffer.tabulation
haml_buffer.tabulation = i
yield
ensure
haml_buffer.tabulation = old_tabs
end
|
Extracted source (around line #137):
135
136
137
138
139
140
|
if wrap_block
oldproc = proc
proc = proc {|*subargs| with_tabs(1) {oldproc.call(*subargs)}}
end
res = form_for_without_haml(object_name, *args, &proc)
res << "\n" if wrap_block
|
Extracted source (around line #39):
37
38
39
40
41
42
|
def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
ERB::Util.html_escape string
end
|
Extracted source (around line #203):
201
202
203
204
205
206
|
end
self.output_buffer, old_buffer = buf, output_buffer
yield
output_buffer
ensure
self.output_buffer = old_buffer
|
Extracted source (around line #5):
3
4
5
6
7
8
|
module CaptureHelper
def with_output_buffer_with_haml_xss(*args, &block)
res = with_output_buffer_without_haml_xss(*args, &block)
case res
when Array; res.map {|s| Haml::Util.html_safe(s)}
when String; Haml::Util.html_safe(res)
|
Extracted source (around line #39):
37
38
39
40
41
42
|
def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
ERB::Util.html_escape string
end
|
Extracted source (around line #52):
50
51
52
53
54
55
|
return str
else
capture_without_haml(*args, &block)
end
end
alias_method :capture_without_haml, :capture
|
Extracted source (around line #450):
448
449
450
451
452
453
|
builder = instantiate_builder(object_name, object, options)
output = capture(builder, &block)
html_options[:multipart] ||= builder.multipart?
html_options = html_options_for_form(options[:url] || {}, html_options)
|
Extracted source (around line #139):
137
138
139
140
141
142
|
proc = proc {|*subargs| with_tabs(1) {oldproc.call(*subargs)}}
end
res = form_for_without_haml(object_name, *args, &proc)
res << "\n" if wrap_block
res
end
|
Extracted source (around line #28):
26
27
28
29
30
31
|
module FormHelper
def form_for_with_haml_xss(*args, &block)
res = form_for_without_haml_xss(*args, &block)
return Haml::Util.html_safe(res) if res.is_a?(String)
return res
end
|
Extracted source (around line #26):
24
25
26
27
28
29
|
with_simple_form_field_error_proc do
form_for(record, options, &block)
end
end
|
Extracted source (around line #45):
43
44
45
46
47
48
|
begin
::ActionView::Base.field_error_proc = SimpleForm.field_error_proc
yield
ensure
::ActionView::Base.field_error_proc = default_field_error_proc
end
|
Extracted source (around line #25):
23
24
25
26
27
28
|
end
with_simple_form_field_error_proc do
form_for(record, options, &block)
end
end
|
Extracted source (around line #4):
2
3
4
5
6
7
|
= render 'step_nav'
= simple_form_for current_order, url: checkout_path, class: 'res-mb-100' do |field|
.hidden-xs.hidden-sm
.row
.col-md-5
|
Extracted source (around line #159):
157
158
159
160
161
162
|
instrument("!render_template".freeze) do
compile!(view)
view.send(method_name, locals, buffer, &block)
end
rescue => e
handle_render_error(view, e)
|
Extracted source (around line #166):
164
165
166
167
168
169
|
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
end
|
Extracted source (around line #354):
352
353
354
355
356
357
|
case action
when "!render_template".freeze
ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, payload, &block)
else
ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, payload, &block)
end
|
Extracted source (around line #157):
155
156
157
158
159
160
|
# consume this in production. This is only slow if it's being listened to.
def render(view, locals, buffer=nil, &block)
instrument("!render_template".freeze) do
compile!(view)
view.send(method_name, locals, buffer, &block)
end
|
Extracted source (around line #54):
52
53
54
55
56
57
|
render_with_layout(layout_name, locals) do |layout|
instrument(:template, :identifier => template.identifier, :layout => layout.try(:virtual_path)) do
template.render(view, locals) { |*name| view._layout_for(*name) }
end
end
end
|
Extracted source (around line #42):
40
41
42
43
44
45
|
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options) do |payload|
yield payload
end
end
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #21):
19
20
21
22
23
24
|
listeners_state = start name, payload
begin
yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
payload[:exception_object] = e
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #41):
39
40
41
42
43
44
|
options[:identifier] ||= (@template && @template.identifier) || @path
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options) do |payload|
yield payload
end
end
|
Extracted source (around line #53):
51
52
53
54
55
56
|
render_with_layout(layout_name, locals) do |layout|
instrument(:template, :identifier => template.identifier, :layout => layout.try(:virtual_path)) do
template.render(view, locals) { |*name| view._layout_for(*name) }
end
end
|
Extracted source (around line #61):
59
60
61
62
63
64
|
def render_with_layout(path, locals) #:nodoc:
layout = path && find_layout(path, locals.keys, [formats.first])
content = yield(layout)
if layout
view = @view
|
Extracted source (around line #52):
50
51
52
53
54
55
|
view, locals = @view, locals || {}
render_with_layout(layout_name, locals) do |layout|
instrument(:template, :identifier => template.identifier, :layout => layout.try(:virtual_path)) do
template.render(view, locals) { |*name| view._layout_for(*name) }
end
|
Extracted source (around line #14):
12
13
14
15
16
17
|
@lookup_context.rendered_format ||= (template.formats.first || formats.first)
render_template(template, options[:layout], options[:locals])
end
private
|
Extracted source (around line #42):
40
41
42
43
44
45
|
# Direct access to template rendering.
def render_template(context, options) #:nodoc:
TemplateRenderer.new(@lookup_context).render(context, options)
end
# Direct access to partial rendering.
|
Extracted source (around line #23):
21
22
23
24
25
26
|
render_partial(context, options)
else
render_template(context, options)
end
end
|
Extracted source (around line #103):
101
102
103
104
105
106
|
lookup_context.variants = variant if variant
view_renderer.render(context, options)
end
# Assign the rendered format to look up context.
|
Extracted source (around line #217):
215
216
217
218
219
220
|
Rack::Chunked::Body.new view_renderer.render_body(view_context, options)
else
super
end
end
end
|
Extracted source (around line #83):
81
82
83
84
85
86
|
def render_to_body(options = {})
_process_options(options)
_render_template(options)
end
def rendered_format
|
Extracted source (around line #52):
50
51
52
53
54
55
|
def render_to_body(options = {})
super || _render_in_priorities(options) || ' '
end
private
|
Extracted source (around line #142):
140
141
142
143
144
145
|
# <tt>ActionView::Rendering.render_to_body</tt>, if present.
def render_to_body(options)
_render_to_body_with_renderer(options) || super
end
def _render_to_body_with_renderer(options)
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
if options[:html]
_set_html_content_type
else
|
Extracted source (around line #36):
34
35
36
37
38
39
|
def render(*args) #:nodoc:
raise ::AbstractController::DoubleRenderError if self.response_body
super
end
# Overwrite render_to_string because body can now be set to a rack body.
|
Extracted source (around line #44):
42
43
44
45
46
47
|
render_output = nil
self.view_runtime = cleanup_view_runtime do
Benchmark.ms { render_output = super }
end
render_output
end
|
Extracted source (around line #12):
10
11
12
13
14
|
# # => 0.074
def ms
1000 * realtime { yield }
end
end
|
Extracted source (around line #308):
306
307
308
309
310
311
|
def realtime # :yield:
r0 = Process.clock_gettime(Process::CLOCK_MONOTONIC)
yield
Process.clock_gettime(Process::CLOCK_MONOTONIC) - r0
end
|
Extracted source (around line #12):
10
11
12
13
14
|
# # => 0.074
def ms
1000 * realtime { yield }
end
end
|
Extracted source (around line #44):
42
43
44
45
46
47
|
render_output = nil
self.view_runtime = cleanup_view_runtime do
Benchmark.ms { render_output = super }
end
render_output
end
|
Extracted source (around line #87):
85
86
87
88
89
90
|
# :api: plugin
def cleanup_view_runtime #:nodoc:
yield
end
# Every time after an action is processed, this method is invoked
|
Extracted source (around line #25):
23
24
25
26
27
28
|
db_rt_before_render = ActiveRecord::LogSubscriber.reset_runtime
self.db_runtime = (db_runtime || 0) + db_rt_before_render
runtime = super
db_rt_after_render = ActiveRecord::LogSubscriber.reset_runtime
self.db_runtime += db_rt_after_render
runtime - db_rt_after_render
|
Extracted source (around line #43):
41
42
43
44
45
46
|
def render(*args)
render_output = nil
self.view_runtime = cleanup_view_runtime do
Benchmark.ms { render_output = super }
end
render_output
|
Extracted source (around line #29):
27
28
29
30
31
32
|
redirect_to_finish_wizard options
else
render the_step, options
end
end
|
Extracted source (around line #11):
9
10
11
12
13
14
|
redirect_to wizard_path(@skip_to, @wicked_redirect_params || {}), options
else
render_step wizard_value(step), options
end
end
|
Extracted source (around line #22):
20
21
22
23
24
25
|
def method_missing(method_name, *args, &block)
if @caller.respond_to?(method_name, true)
@caller.send(method_name, *args, &block)
else
super
end
|
Extracted source (around line #15):
13
14
15
16
17
18
|
def show
Checkout::AccessStep.call(current_order, step) do
on(:allow) { render_wizard }
on(:not_allow) do
redirect_to checkout_path(previous_step),
alert: t('corzinus.flash.failure.step')
|
Extracted source (around line #5):
3
4
5
6
7
8
|
def broadcast(event, publisher, *args)
if should_broadcast?(event)
listener.call(*args)
end
end
end
|
Extracted source (around line #65):
63
64
65
66
67
68
|
def broadcast(event, *args)
registrations.each do | registration |
registration.broadcast(clean_event(event), self, *args)
end
end
|
Extracted source (around line #306):
304
305
306
307
308
309
|
def each(&block)
block or return enum_for(__method__) { size }
@hash.each_key(&block)
self
end
|
Extracted source (around line #306):
304
305
306
307
308
309
|
def each(&block)
block or return enum_for(__method__) { size }
@hash.each_key(&block)
self
end
|
Extracted source (around line #64):
62
63
64
65
66
67
|
def broadcast(event, *args)
registrations.each do | registration |
registration.broadcast(clean_event(event), self, *args)
end
end
|
Extracted source (around line #15):
13
14
15
16
17
18
|
return broadcast(:empty_cart)
end
allow? ? broadcast(:allow) : broadcast(:not_allow)
end
private
|
Extracted source (around line #8):
6
7
8
9
10
11
|
command = new(*args)
command.evaluate(&block) if block_given?
command.call
end
def evaluate(&block)
|
Extracted source (around line #14):
12
13
14
15
16
17
|
def show
Checkout::AccessStep.call(current_order, step) do
on(:allow) { render_wizard }
on(:not_allow) do
redirect_to checkout_path(previous_step),
|
Extracted source (around line #4):
2
3
4
5
6
7
|
module BasicImplicitRender # :nodoc:
def send_action(method, *args)
super.tap { default_render unless performed? }
end
def default_render(*args)
|
Extracted source (around line #188):
186
187
188
189
190
191
|
# which is *not* necessarily the same as the action name.
def process_action(method_name, *args)
send_action(method_name, *args)
end
# Actually call the method associated with the action. Override
|
Extracted source (around line #30):
28
29
30
31
32
33
|
def process_action(*) #:nodoc:
self.formats = request.formats.map(&:ref).compact
super
end
# Check for double render errors and set the content_type after rendering.
|
Extracted source (around line #20):
18
19
20
21
22
23
|
def process_action(*args)
run_callbacks(:process_action) do
super
end
end
|
Extracted source (around line #126):
124
125
126
127
128
129
|
def call(env)
block = env.run_block
env.value = !env.halted && (!block || block.call)
env
end
end
|
Extracted source (around line #506):
504
505
506
507
508
509
|
def compile
@callbacks || @mutex.synchronize do
final_sequence = CallbackSequence.new { |env| Filters::ENDING.call(env) }
@callbacks ||= @chain.reverse.inject(final_sequence) do |callback_sequence, callback|
callback.apply callback_sequence
end
|
Extracted source (around line #455):
453
454
455
456
457
458
|
def call(arg)
@before.each { |b| b.call(arg) }
value = @call.call(arg)
@after.each { |a| a.call(arg) }
value
end
|
Extracted source (around line #101):
99
100
101
102
103
104
|
runner = callbacks.compile
e = Filters::Environment.new(self, false, nil, block)
runner.call(e).value
end
end
|
Extracted source (around line #750):
748
749
750
751
752
753
|
module_eval <<-RUBY, __FILE__, __LINE__ + 1
def _run_#{name}_callbacks(&block)
__run_callbacks__(_#{name}_callbacks, &block)
end
RUBY
end
|
Extracted source (around line #90):
88
89
90
91
92
93
|
# end
def run_callbacks(kind, &block)
send "_run_#{kind}_callbacks", &block
end
private
|
Extracted source (around line #19):
17
18
19
20
21
22
|
# process_action callbacks around the normal behavior.
def process_action(*args)
run_callbacks(:process_action) do
super
end
end
|
Extracted source (around line #20):
18
19
20
21
22
23
|
private
def process_action(*args)
super
rescue Exception => exception
request.env['action_dispatch.show_detailed_exceptions'] ||= show_detailed_exceptions?
rescue_with_handler(exception) || raise
|
Extracted source (around line #32):
30
31
32
33
34
35
|
ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload|
begin
result = super
payload[:status] = response.status
result
ensure
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #21):
19
20
21
22
23
24
|
listeners_state = start name, payload
begin
yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
payload[:exception_object] = e
|
Extracted source (around line #164):
162
163
164
165
166
167
|
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
|
Extracted source (around line #30):
28
29
30
31
32
33
|
ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload.dup)
ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload|
begin
result = super
payload[:status] = response.status
|
Extracted source (around line #248):
246
247
248
249
250
251
|
request.filtered_parameters.merge! wrapped_filtered_hash
end
super
end
private
|
Extracted source (around line #18):
16
17
18
19
20
21
|
# and it won't be cleaned up by the method below.
ActiveRecord::LogSubscriber.reset_runtime
super
end
def cleanup_view_runtime
|
Extracted source (around line #126):
124
125
126
127
128
129
|
@_response_body = nil
process_action(action_name, *args)
end
# Delegates to the class' ::controller_path
|
Extracted source (around line #30):
28
29
30
31
32
33
|
def process(*) #:nodoc:
old_config, I18n.config = I18n.config, I18nProxy.new(I18n.config, lookup_context)
super
ensure
I18n.config = old_config
end
|
Extracted source (around line #190):
188
189
190
191
192
193
|
set_request!(request)
set_response!(response)
process(name)
request.commit_flash
to_a
end
|
Extracted source (around line #262):
260
261
262
263
264
265
|
middleware_stack.build(name) { |env| new.dispatch(name, req, res) }.call req.env
else
new.dispatch(name, req, res)
end
end
end
|
Extracted source (around line #50):
48
49
50
51
52
53
|
def dispatch(controller, action, req, res)
controller.dispatch(action, req, res)
end
end
|
Extracted source (around line #32):
30
31
32
33
34
35
|
controller = controller req
res = controller.make_response! req
dispatch(controller, params[:action], req, res)
rescue ActionController::RoutingError
if @raise_on_name_error
raise
|
Extracted source (around line #39):
37
38
39
40
41
42
|
req.path_parameters = set_params.merge parameters
status, headers, body = route.app.serve(req)
if 'pass' == headers['X-Cascade']
req.script_name = script_name
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def serve(req)
find_routes(req).each do |match, parameters, route|
set_params = req.path_parameters
path_info = req.path_info
script_name = req.script_name
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def serve(req)
find_routes(req).each do |match, parameters, route|
set_params = req.path_parameters
path_info = req.path_info
script_name = req.script_name
|
Extracted source (around line #725):
723
724
725
726
727
728
|
req = make_request(env)
req.path_info = Journey::Router::Utils.normalize_path(req.path_info)
@router.serve(req)
end
def recognize_path(path, environment = {})
|
Extracted source (around line #522):
520
521
522
523
524
525
|
def call(env)
req = build_request env
app.call req.env
end
# Defines additional Rack env configuration that is added on each call.
|
Extracted source (around line #193):
191
192
193
194
195
196
|
def method_missing(name, *args, &block)
if instance.respond_to?(name)
instance.public_send(name, *args, &block)
else
super
end
|
Extracted source (around line #193):
191
192
193
194
195
196
|
def method_missing(name, *args, &block)
if instance.respond_to?(name)
instance.public_send(name, *args, &block)
else
super
end
|
Extracted source (around line #17):
15
16
17
18
19
20
|
SERVE = ->(app, req) { app.serve req }
CALL = ->(app, req) { app.call req.env }
def initialize(app, constraints, strategy)
# Unwrap Constraints objects. I don't actually think it's possible
|
Extracted source (around line #46):
44
45
46
47
48
49
|
return [ 404, {'X-Cascade' => 'pass'}, [] ] unless matches?(req)
@strategy.call @app, req
end
private
|
Extracted source (around line #39):
37
38
39
40
41
42
|
req.path_parameters = set_params.merge parameters
status, headers, body = route.app.serve(req)
if 'pass' == headers['X-Cascade']
req.script_name = script_name
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def serve(req)
find_routes(req).each do |match, parameters, route|
set_params = req.path_parameters
path_info = req.path_info
script_name = req.script_name
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def serve(req)
find_routes(req).each do |match, parameters, route|
set_params = req.path_parameters
path_info = req.path_info
script_name = req.script_name
|
Extracted source (around line #725):
723
724
725
726
727
728
|
req = make_request(env)
req.path_info = Journey::Router::Utils.normalize_path(req.path_info)
@router.serve(req)
end
def recognize_path(path, environment = {})
|
Extracted source (around line #25):
23
24
25
26
27
28
|
def call(env)
status, headers, body = @app.call(env)
if etag_status?(status) && etag_body?(body) && !skip_caching?(headers)
original_body = body
|
Extracted source (around line #25):
23
24
25
26
27
28
|
case env[REQUEST_METHOD]
when "GET", "HEAD"
status, headers, body = @app.call(env)
headers = Utils::HeaderHash.new(headers)
if status == 200 && fresh?(env, headers)
status = 304
|
Extracted source (around line #12):
10
11
12
13
14
15
|
def call(env)
status, headers, body = @app.call(env)
if env[REQUEST_METHOD] == HEAD
[
|
Extracted source (around line #222):
220
221
222
223
224
225
|
req = make_request env
prepare_session(req)
status, headers, body = app.call(req.env)
res = Rack::Response::Raw.new status, headers
commit_session(req, res)
[status, headers, body]
|
Extracted source (around line #216):
214
215
216
217
218
219
|
def call(env)
context(env)
end
def context(env, app=@app)
|
Extracted source (around line #613):
611
612
613
614
615
616
|
request = ActionDispatch::Request.new env
status, headers, body = @app.call(env)
if request.have_cookie_jar?
cookie_jar = request.cookie_jar
|
Extracted source (around line #553):
551
552
553
554
555
556
|
end
end
@app.call(env)
end
private
|
Extracted source (around line #38):
36
37
38
39
40
41
|
result = run_callbacks :call do
begin
@app.call(env)
rescue => error
end
end
|
Extracted source (around line #97):
95
96
97
98
99
100
|
def __run_callbacks__(callbacks, &block)
if callbacks.empty?
yield if block_given?
else
runner = callbacks.compile
e = Filters::Environment.new(self, false, nil, block)
|
Extracted source (around line #750):
748
749
750
751
752
753
|
module_eval <<-RUBY, __FILE__, __LINE__ + 1
def _run_#{name}_callbacks(&block)
__run_callbacks__(_#{name}_callbacks, &block)
end
RUBY
end
|
Extracted source (around line #90):
88
89
90
91
92
93
|
# end
def run_callbacks(kind, &block)
send "_run_#{kind}_callbacks", &block
end
private
|
Extracted source (around line #36):
34
35
36
37
38
39
|
def call(env)
error = nil
result = run_callbacks :call do
begin
@app.call(env)
rescue => error
|
Extracted source (around line #12):
10
11
12
13
14
15
|
state = @executor.run!
begin
response = @app.call(env)
returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
ensure
state.complete! unless returned
|
Extracted source (around line #79):
77
78
79
80
81
82
|
req = ActionDispatch::Request.new env
req.remote_ip = GetIp.new(req, check_ip, proxies)
@app.call(req.env)
end
# The GetIp class exists as a way to defer processing of the request data
|
Extracted source (around line #49):
47
48
49
50
51
52
|
def call(env)
request = ActionDispatch::Request.new env
_, headers, body = response = @app.call(env)
if headers['X-Cascade'] == 'pass'
body.close if body.respond_to?(:close)
|
Extracted source (around line #31):
29
30
31
32
33
34
|
def call(env)
request = ActionDispatch::Request.new env
@app.call(env)
rescue Exception => exception
if request.show_exceptions?
render_exception(request, exception)
|
Extracted source (around line #36):
34
35
36
37
38
39
|
instrumenter.start 'request.action_dispatch', request: request
logger.info { started_request_message(request) }
resp = @app.call(env)
resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request) }
resp
rescue Exception
|
Extracted source (around line #24):
22
23
24
25
26
27
|
if logger.respond_to?(:tagged)
logger.tagged(compute_tags(request)) { call_app(request, env) }
else
call_app(request, env)
end
|
Extracted source (around line #69):
67
68
69
70
71
72
|
def tagged(*tags)
formatter.tagged(*tags) { yield self }
end
def flush
|
Extracted source (around line #26):
24
25
26
27
28
29
|
def tagged(*tags)
new_tags = push_tags(*tags)
yield self
ensure
pop_tags(new_tags.size)
end
|
Extracted source (around line #69):
67
68
69
70
71
72
|
def tagged(*tags)
formatter.tagged(*tags) { yield self }
end
def flush
|
Extracted source (around line #24):
22
23
24
25
26
27
|
if logger.respond_to?(:tagged)
logger.tagged(compute_tags(request)) { call_app(request, env) }
else
call_app(request, env)
end
|
Extracted source (around line #13):
11
12
13
14
15
16
|
::Rails.logger.silence { @app.call(env) }
else
@app.call(env)
end
end
end
|
Extracted source (around line #9):
7
8
9
10
11
12
|
def call(env)
RequestStore.begin!
@app.call(env)
ensure
RequestStore.end!
RequestStore.clear!
|
Extracted source (around line #24):
22
23
24
25
26
27
|
req = ActionDispatch::Request.new env
req.request_id = make_request_id(req.x_request_id)
@app.call(env).tap { |_status, headers, _body| headers[X_REQUEST_ID] = req.request_id }
end
private
|
Extracted source (around line #22):
20
21
22
23
24
25
|
end
@app.call(env)
end
def method_override(env)
|
Extracted source (around line #22):
20
21
22
23
24
25
|
def call(env)
start_time = Utils.clock_time
status, headers, body = @app.call(env)
request_time = Utils.clock_time - start_time
unless headers.has_key?(@header_name)
|
Extracted source (around line #28):
26
27
28
29
30
31
|
def call(env)
LocalCacheRegistry.set_cache_for(local_cache_key, LocalStore.new)
response = @app.call(env)
response[2] = ::Rack::BodyProxy.new(response[2]) do
LocalCacheRegistry.set_cache_for(local_cache_key, nil)
end
|
Extracted source (around line #12):
10
11
12
13
14
15
|
state = @executor.run!
begin
response = @app.call(env)
returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
ensure
state.complete! unless returned
|
Extracted source (around line #136):
134
135
136
137
138
139
|
end
@app.call(req.env)
end
end
end
|
Extracted source (around line #111):
109
110
111
112
113
114
|
def call(env)
status, headers, body = @app.call(env)
if body.respond_to?(:to_path)
case type = variation(env)
when 'X-Accel-Redirect'
|
Extracted source (around line #522):
520
521
522
523
524
525
|
def call(env)
req = build_request env
app.call req.env
end
# Defines additional Rack env configuration that is added on each call.
|
Extracted source (around line #68):
66
67
68
69
70
71
|
env[PATH_INFO] = rest
return app.call(env)
end
[404, {CONTENT_TYPE => "text/plain", "X-Cascade" => "pass"}, ["Not Found: #{path}"]]
|
Extracted source (around line #53):
51
52
53
54
55
56
|
casecmp?(http_host, "#{server_name}:#{server_port}")
@mapping.each do |host, location, match, app|
unless casecmp?(http_host, host) \
|| casecmp?(server_name, host) \
|| (!host && is_same_server)
|
Extracted source (around line #53):
51
52
53
54
55
56
|
casecmp?(http_host, "#{server_name}:#{server_port}")
@mapping.each do |host, location, match, app|
unless casecmp?(http_host, host) \
|| casecmp?(server_name, host) \
|| (!host && is_same_server)
|
Extracted source (around line #30):
28
29
30
31
32
33
|
env["HTTP_COOKIE"] ||= cookie_jar.for(uri)
@last_request = Rack::Request.new(env)
status, headers, body = @app.call(@last_request.env)
@last_response = MockResponse.new(status, headers, body, env["rack.errors"].flush)
body.close if body.respond_to?(:close)
|
Extracted source (around line #244):
242
243
244
245
246
247
|
uri.host ||= @default_host
@rack_mock_session.request(uri, env)
if retry_with_digest_auth?(env)
auth_env = env.merge({
|
Extracted source (around line #58):
56
57
58
59
60
61
|
def get(uri, params = {}, env = {}, &block)
env = env_for(uri, env.merge(:method => "GET", :params => params))
process_request(uri, env, &block)
end
# Issue a POST request for the given URI. See #get
|
Extracted source (around line #189):
187
188
189
190
191
192
|
def #{ali}(*args, &block)
begin
#{accessor}.__send__(:#{method}, *args, &block)
rescue ::Exception
$@.delete_if{|s| ::Forwardable::FILE_REGEXP =~ s} unless ::Forwardable::debug
::Kernel::raise
|
Extracted source (around line #61):
59
60
61
62
63
64
|
reset_cache!
send(method, new_uri.to_s, attributes, env.merge(options[:headers] || {}))
end
def current_url
|
Extracted source (around line #36):
34
35
36
37
38
39
|
def process_and_follow_redirects(method, path, attributes = {}, env = {})
process(method, path, attributes, env)
if driver.follow_redirects?
driver.redirect_limit.times do
process(:get, last_response["Location"], {}, env) if last_response.redirect?
|
Extracted source (around line #22):
20
21
22
23
24
25
|
def visit(path, attributes = {})
reset_host!
process_and_follow_redirects(:get, path, attributes)
end
def submit(method, path, attributes)
|
Extracted source (around line #43):
41
42
43
44
45
46
|
def visit(path, attributes = {})
browser.visit(path, attributes)
end
def submit(method, path, attributes)
|
Extracted source (around line #252):
250
251
252
253
254
255
|
visit_uri = uri_base.merge(visit_uri) unless uri_base.nil?
driver.visit(visit_uri.to_s)
end
##
|
Extracted source (around line #52):
50
51
52
53
54
55
|
Session::DSL_METHODS.each do |method|
define_method method do |*args, &block|
page.send method, *args, &block
end
end
end
|
Extracted source (around line #29):
27
28
29
30
31
32
|
def visit(*)
if defined?(super)
super
else
raise "Capybara not loaded, please add it to your Gemfile:\n\ngem \"capybara\""
end
|
Extracted source (around line #13):
11
12
13
14
15
16
|
stub_current_order(order)
stub_current_person(Corzinus::ApplicationController, person, :instance)
visit corzinus.checkout_path(id: :address)
end
scenario 'When user not fill shipping address' do
|
Extracted source (around line #443):
441
442
443
444
445
446
|
# @private
def instance_exec(*args, &block)
@example_group_instance.instance_exec(*args, &block)
end
private
|
Extracted source (around line #443):
441
442
443
444
445
446
|
# @private
def instance_exec(*args, &block)
@example_group_instance.instance_exec(*args, &block)
end
private
|
Extracted source (around line #350):
348
349
350
351
352
353
|
class BeforeHook < Hook
def run(example)
example.instance_exec(example, &block)
end
end
|
Extracted source (around line #507):
505
506
507
508
509
510
|
def run_owned_hooks_for(position, scope, example_or_group)
matching_hooks_for(position, scope, example_or_group).each do |hook|
hook.run(example_or_group)
end
end
|
Extracted source (around line #506):
504
505
506
507
508
509
|
def run_owned_hooks_for(position, scope, example_or_group)
matching_hooks_for(position, scope, example_or_group).each do |hook|
hook.run(example_or_group)
end
end
|
Extracted source (around line #506):
504
505
506
507
508
509
|
def run_owned_hooks_for(position, scope, example_or_group)
matching_hooks_for(position, scope, example_or_group).each do |hook|
hook.run(example_or_group)
end
end
|
Extracted source (around line #593):
591
592
593
594
595
596
|
def run_example_hooks_for(example, position, each_method)
owner_parent_groups.__send__(each_method) do |group|
group.hooks.run_owned_hooks_for(position, :example, example)
end
end
|
Extracted source (around line #592):
590
591
592
593
594
595
|
def run_example_hooks_for(example, position, each_method)
owner_parent_groups.__send__(each_method) do |group|
group.hooks.run_owned_hooks_for(position, :example, example)
end
end
|
Extracted source (around line #592):
590
591
592
593
594
595
|
def run_example_hooks_for(example, position, each_method)
owner_parent_groups.__send__(each_method) do |group|
group.hooks.run_owned_hooks_for(position, :example, example)
end
end
|
Extracted source (around line #462):
460
461
462
463
464
465
|
else
case position
when :before then run_example_hooks_for(example_or_group, :before, :reverse_each)
when :after then run_example_hooks_for(example_or_group, :after, :each)
when :around then run_around_example_hooks_for(example_or_group) { yield }
end
|
Extracted source (around line #490):
488
489
490
491
492
493
|
def run_before_example
@example_group_instance.setup_mocks_for_rspec
hooks.run(:before, :example, self)
end
def with_around_and_singleton_context_hooks
|
Extracted source (around line #253):
251
252
253
254
255
256
|
with_around_and_singleton_context_hooks do
begin
run_before_example
@example_group_instance.instance_exec(self, &@example_block)
if pending?
|
Extracted source (around line #496):
494
495
496
497
498
499
|
singleton_context_hooks_host = example_group_instance.singleton_class
singleton_context_hooks_host.run_before_context_hooks(example_group_instance)
with_around_example_hooks { yield }
ensure
singleton_context_hooks_host.run_after_context_hooks(example_group_instance)
end
|
Extracted source (around line #453):
451
452
453
454
455
456
|
def with_around_example_hooks
hooks.run(:around, :example, self) { yield }
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => e
set_exception(e)
end
|
Extracted source (around line #464):
462
463
464
465
466
467
|
when :before then run_example_hooks_for(example_or_group, :before, :reverse_each)
when :after then run_example_hooks_for(example_or_group, :after, :each)
when :around then run_around_example_hooks_for(example_or_group) { yield }
end
end
end
|
Extracted source (around line #604):
602
603
604
605
606
607
|
return yield if hooks.empty? # exit early to avoid the extra allocation cost of `Example::Procsy`
initial_procsy = Example::Procsy.new(example) { yield }
hooks.inject(initial_procsy) do |procsy, around_hook|
procsy.wrap { around_hook.execute_with(example, procsy) }
end.call
|
Extracted source (around line #338):
336
337
338
339
340
341
|
def call(*args, &block)
@executed = true
@proc.call(*args, &block)
end
alias run call
|
Extracted source (around line #127):
125
126
127
128
129
130
|
group.around do |example|
before_setup
example.run
after_teardown
end
end
|
Extracted source (around line #443):
441
442
443
444
445
446
|
# @private
def instance_exec(*args, &block)
@example_group_instance.instance_exec(*args, &block)
end
private
|
Extracted source (around line #443):
441
442
443
444
445
446
|
# @private
def instance_exec(*args, &block)
@example_group_instance.instance_exec(*args, &block)
end
private
|
Extracted source (around line #375):
373
374
375
376
377
378
|
class AroundHook < Hook
def execute_with(example, procsy)
example.instance_exec(procsy, &block)
return if procsy.executed?
Pending.mark_skipped!(example,
"#{hook_description} did not execute the example")
|
Extracted source (around line #606):
604
605
606
607
608
609
|
initial_procsy = Example::Procsy.new(example) { yield }
hooks.inject(initial_procsy) do |procsy, around_hook|
procsy.wrap { around_hook.execute_with(example, procsy) }
end.call
end
|
Extracted source (around line #338):
336
337
338
339
340
341
|
def call(*args, &block)
@executed = true
@proc.call(*args, &block)
end
alias run call
|
Extracted source (around line #607):
605
606
607
608
609
610
|
hooks.inject(initial_procsy) do |procsy, around_hook|
procsy.wrap { around_hook.execute_with(example, procsy) }
end.call
end
if respond_to?(:singleton_class) && singleton_class.ancestors.include?(singleton_class)
|
Extracted source (around line #464):
462
463
464
465
466
467
|
when :before then run_example_hooks_for(example_or_group, :before, :reverse_each)
when :after then run_example_hooks_for(example_or_group, :after, :each)
when :around then run_around_example_hooks_for(example_or_group) { yield }
end
end
end
|
Extracted source (around line #453):
451
452
453
454
455
456
|
def with_around_example_hooks
hooks.run(:around, :example, self) { yield }
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => e
set_exception(e)
end
|
Extracted source (around line #496):
494
495
496
497
498
499
|
singleton_context_hooks_host = example_group_instance.singleton_class
singleton_context_hooks_host.run_before_context_hooks(example_group_instance)
with_around_example_hooks { yield }
ensure
singleton_context_hooks_host.run_after_context_hooks(example_group_instance)
end
|
Extracted source (around line #251):
249
250
251
252
253
254
|
Pending.mark_pending! self, skip
elsif !RSpec.configuration.dry_run?
with_around_and_singleton_context_hooks do
begin
run_before_example
@example_group_instance.instance_exec(self, &@example_block)
|
Extracted source (around line #627):
625
626
627
628
629
630
|
instance = new(example.inspect_output)
set_ivars(instance, before_context_ivars)
succeeded = example.run(instance, reporter)
if !succeeded && reporter.fail_fast_limit_met?
RSpec.world.wants_to_quit = true
end
|
Extracted source (around line #623):
621
622
623
624
625
626
|
# @private
def self.run_examples(reporter)
ordering_strategy.order(filtered_examples).map do |example|
next if RSpec.world.wants_to_quit
instance = new(example.inspect_output)
set_ivars(instance, before_context_ivars)
|
Extracted source (around line #623):
621
622
623
624
625
626
|
# @private
def self.run_examples(reporter)
ordering_strategy.order(filtered_examples).map do |example|
next if RSpec.world.wants_to_quit
instance = new(example.inspect_output)
set_ivars(instance, before_context_ivars)
|
Extracted source (around line #589):
587
588
589
590
591
592
|
begin
run_before_context_hooks(new('before(:context) hook')) if should_run_context_hooks
result_for_this_group = run_examples(reporter)
results_for_descendants = ordering_strategy.order(children).map { |child| child.run(reporter) }.all?
result_for_this_group && results_for_descendants
rescue Pending::SkipDeclaredInExample => ex
|
Extracted source (around line #113):
111
112
113
114
115
116
|
success = @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
@configuration.with_suite_hooks do
example_groups.map { |g| g.run(reporter) }.all?
end
end && !@world.non_example_failure
|
Extracted source (around line #113):
111
112
113
114
115
116
|
success = @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
@configuration.with_suite_hooks do
example_groups.map { |g| g.run(reporter) }.all?
end
end && !@world.non_example_failure
|
Extracted source (around line #113):
111
112
113
114
115
116
|
success = @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
@configuration.with_suite_hooks do
example_groups.map { |g| g.run(reporter) }.all?
end
end && !@world.non_example_failure
|
Extracted source (around line #1835):
1833
1834
1835
1836
1837
1838
|
begin
run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks)
yield
ensure
run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks)
end
|
Extracted source (around line #112):
110
111
112
113
114
115
|
def run_specs(example_groups)
success = @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
@configuration.with_suite_hooks do
example_groups.map { |g| g.run(reporter) }.all?
end
end && !@world.non_example_failure
|
Extracted source (around line #77):
75
76
77
78
79
80
|
start(expected_example_count)
begin
yield self
ensure
finish
end
|
Extracted source (around line #111):
109
110
111
112
113
114
|
# failed.
def run_specs(example_groups)
success = @configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
@configuration.with_suite_hooks do
example_groups.map { |g| g.run(reporter) }.all?
end
|
Extracted source (around line #87):
85
86
87
88
89
90
|
def run(err, out)
setup(err, out)
run_specs(@world.ordered_example_groups).tap do
persist_example_statuses
end
end
|
Extracted source (around line #71):
69
70
71
72
73
74
|
options.options[:runner].call(options, err, out)
else
new(options).run(err, out)
end
end
|
Extracted source (around line #45):
43
44
45
46
47
48
|
def self.invoke
disable_autorun!
status = run(ARGV, $stderr, $stdout).to_i
exit(status) if status != 0
end
|
Extracted source (around line #4):
2
3
4
|
require 'rspec/core'
RSpec::Core::Runner.invoke
|
Extracted source (around line #23):
21
22
23
|
gem 'rspec-core', version
load Gem.bin_path('rspec-core', 'rspec', version)
|
Extracted source (around line #23):
21
22
23
|
gem 'rspec-core', version
load Gem.bin_path('rspec-core', 'rspec', version)
|
Extracted source (around line #15):
13
14
15
|
end
eval File.read($0), binding, $0
|
Extracted source (around line #15):
13
14
15
|
end
eval File.read($0), binding, $0
|
Trace of template inclusion: /home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/checkouts/address.html.haml
Rails.root: /home/yaroslav/Learn/Rails/corzinus/spec/dummy
Request
Parameters:
{"id"=>"address"}
ORIGINAL_SCRIPT_NAME: ""
REMOTE_ADDR: "127.0.0.1"
SERVER_NAME: "www.example.com"
Response
Headers:
None