Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Nov 1, 2023
1 parent 6592c08 commit 8670ffb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ class LegacyTouchpointUrlMap
def self.map
legacy_map = {}
Form.all.find_each do |form|
legacy_map[form.legacy_touchpoint_id.to_s] = form.short_uuid if form.legacy_touchpoint_id?
legacy_map[form.legacy_touchpoint_id.to_s] = form.short_uuid if form.legacy_touchpoint_id

legacy_map[form.legacy_touchpoint_uuid[0..7].to_s] = form.short_uuid if form.legacy_touchpoint_uuid?
legacy_map[form.legacy_touchpoint_uuid[0..7].to_s] = form.short_uuid if form.legacy_touchpoint_uuid
end

legacy_map
Expand Down
5 changes: 5 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
require 'bullet'

Rails.application.configure do
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.raise = false # raise an error if n+1 query occurs
end
# Settings specified here will take precedence over those in config/application.rb.

config.cache_classes = true
Expand Down

0 comments on commit 8670ffb

Please sign in to comment.