Skip to content

Commit 2adab5e

Browse files
committed
remove rails_form_builder
1 parent 9410ee4 commit 2adab5e

3 files changed

Lines changed: 8 additions & 21 deletions

File tree

Gemfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,20 @@ gem "meta-tags", "~> 2.22"
3434
# Reduces boot times through caching; required in config/boot.rb
3535
gem "bootsnap", require: false
3636

37+
# Use the Citizens Advice Design System
38+
# Pinned version, should match @citizensadvice/design-system in package.json
3739
gem "citizens_advice_components",
3840
github: "citizensadvice/design-system",
3941
tag: "v8.1.0",
4042
glob: "engine/*.gemspec"
4143

42-
gem "citizens_advice_form_builder",
43-
github: "citizensadvice/rails-form-builder",
44-
tag: "v0.2.0"
45-
44+
# The citizens_advice_components gem uses view component but we also use this to write
45+
# our app components so explicitly name it as an application dependency.
4646
gem "view_component", "~> 3.23"
4747

48+
# Multi-step forms. Used alongside the design system form builder
49+
gem "wizard_steps", "~> 0.1.4"
50+
4851
gem "datadog"
4952
gem "factory_bot_rails"
5053
gem "faraday"
@@ -93,5 +96,3 @@ group :test do
9396
gem "selenium-webdriver"
9497
gem "webdrivers"
9598
end
96-
97-
gem "wizard_steps", "~> 0.1.4"

Gemfile.lock

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ GIT
3535
railties (>= 7.1.0, < 9.0)
3636
view_component (>= 2.0.0, < 5.0)
3737

38-
GIT
39-
remote: https://github.com/citizensadvice/rails-form-builder.git
40-
revision: c55469691bd453f665a299d592e1ef263024e454
41-
tag: v0.2.0
42-
specs:
43-
citizens_advice_form_builder (0.2.0)
44-
actionpack (>= 6.1.0, < 8.0)
45-
actionview (>= 6.1.0, < 8.0)
46-
activemodel (>= 6.1.0, < 8.0)
47-
activerecord (>= 6.1.0, < 8.0)
48-
activesupport (>= 6.1.0, < 8.0)
49-
citizens_advice_components
50-
5138
GEM
5239
remote: https://rubygems.org/
5340
specs:
@@ -547,7 +534,6 @@ DEPENDENCIES
547534
capybara_accessible_selectors!
548535
citizens-advice-style!
549536
citizens_advice_components!
550-
citizens_advice_form_builder!
551537
climate_control
552538
cssbundling-rails
553539
cucumber-rails

app/controllers/appliance_calculator/daily_usage_creation/steps_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class StepsController < ApplicationController
77

88
self.wizard_class = ::DailyUsageCreation::Wizard
99

10-
default_form_builder ::CitizensAdviceFormBuilder::FormBuilder
10+
default_form_builder ::CitizensAdviceComponents::FormBuilder
1111

1212
class MissingApplianceError < StandardError; end
1313

0 commit comments

Comments
 (0)