Skip to content

Address Zeitwerk reloading issue #3500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions app/forms/check_box_with_nested_form.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# frozen_string_literal: true

# :nodoc:
class CustomCitiesForm < ApplicationForm
form do |custom_cities_form|
custom_cities_form.text_field(
name: :custom_cities,
label: "Custom cities",
description: "A space-separated list of cities"
)
class CheckBoxWithNestedForm < ApplicationForm
# :nodoc:
class CustomCitiesForm < ApplicationForm
form do |custom_cities_form|
custom_cities_form.text_field(
name: :custom_cities,
label: "Custom cities",
description: "A space-separated list of cities"
)
end
end
end

# :nodoc:
class CheckBoxWithNestedForm < ApplicationForm
form do |check_form|
check_form.check_box_group(name: :city_categories) do |check_group|
check_group.check_box(
Expand Down
32 changes: 16 additions & 16 deletions app/forms/radio_button_with_nested_form.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# frozen_string_literal: true

# :nodoc:
class FriendForm < ApplicationForm
form do |friend_form|
friend_form.group(layout: :horizontal) do |name_group|
name_group.text_field(name: "first_name", label: "First Name")
name_group.text_field(name: "last_name", label: "Last Name")
class RadioButtonWithNestedForm < ApplicationForm
# :nodoc:
class FriendForm < ApplicationForm
form do |friend_form|
friend_form.group(layout: :horizontal) do |name_group|
name_group.text_field(name: "first_name", label: "First Name")
name_group.text_field(name: "last_name", label: "Last Name")
end
end
end
end

# :nodoc:
class FriendTextAreaForm < ApplicationForm
form do |friend_text_area_form|
friend_text_area_form.text_area(
name: "description",
label: "Describe this wonderful person in loving detail"
)
# :nodoc:
class FriendTextAreaForm < ApplicationForm
form do |friend_text_area_form|
friend_text_area_form.text_area(
name: "description",
label: "Describe this wonderful person in loving detail"
)
end
end
end

# :nodoc:
class RadioButtonWithNestedForm < ApplicationForm
form do |radio_form|
radio_form.radio_button_group(name: "channel") do |radio_group|
radio_group.radio_button(value: "online", label: "Online advertisement", caption: "Facebook maybe?")
Expand Down