Skip to content

Commit

Permalink
Merge pull request #2789 from alphagov/extract-account-concern
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGabbianelli authored Jun 2, 2021
2 parents e4e4562 + 15e448b commit 9db8301
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 57 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ gem "dalli"
gem "gds-api-adapters"
gem "govuk_ab_testing"
gem "govuk_app_config"
gem "govuk_personalisation"
gem "govuk_publishing_components"
gem "htmlentities"
gem "invalid_utf8_rejector"
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ GEM
sentry-raven (~> 3.1.1)
statsd-ruby (~> 1.5.0)
unicorn (>= 5.4, < 5.9)
govuk_personalisation (0.2.0)
rails (~> 6)
govuk_publishing_components (24.11.1)
govuk_app_config
kramdown
Expand Down Expand Up @@ -430,6 +432,7 @@ DEPENDENCIES
govuk-content-schema-test-helpers
govuk_ab_testing
govuk_app_config
govuk_personalisation
govuk_publishing_components
govuk_schemas
govuk_test
Expand Down
55 changes: 0 additions & 55 deletions app/controllers/concerns/account_concern.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/controllers/save_pages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class SavePagesController < ApplicationController
include AccountConcern
include GovukPersonalisation::AccountConcern

before_action :set_no_cache_headers
before_action { head :not_found unless feature_flag_enabled? }
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class SessionsController < ApplicationController
include AccountConcern
include GovukPersonalisation::AccountConcern

before_action :set_no_cache_headers

Expand Down

0 comments on commit 9db8301

Please sign in to comment.