docbrown/lib/tasks
Jeremy Friesen 711f1bb0cd
Let override of ToS and CoC show in onboarding (#16217)
* Let override of ToS and CoC show in onboarding

Prior to this commit any changes to the terms or code of conduct were
not reflected in the onboarding links.

With this commit, I'm leveraging a newly created method that first
checks if there's a page for the given slug.  If there is, use that
page's copy.

To test:

- Overwrite default /terms page on a Forem
- Navigate to /onboarding or sign up as a new user
- Click on Terms of Use link text
- Review Terms of Use

Closes #15296

* Adding spec around not passing a block
2022-01-20 19:45:39 -05:00
..
temporary Remove Hacktoberfest Badge Rake Task (#12495) 2021-02-01 09:59:29 -06:00
add_navigation_links.rake Let override of ToS and CoC show in onboarding (#16217) 2022-01-20 19:45:39 -05:00
app_initializer.rake Clean up forem:setup task (#13998) 2021-06-18 09:34:18 +07:00
assets.rake Clear asset and vendor caches on deploy (#13631) 2021-06-02 13:14:59 -04:00
badges.rake Split BadgeRewarder into multiple services (#11902) 2020-12-23 09:55:06 -05:00
cache.rake Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
data_updates.rake Delay DUS scripts via WORKERS_DATA_UPDATE_DELAY_SECONDS in rake otherwise default run them immediately (#14166) 2021-07-09 13:26:58 -05:00
e2e_seed.rake Minimal Seed Data for Admin Onboarding (#14385) 2021-07-29 17:08:41 +02:00
fastly.rake [deploy] Feature:Add ENV to Skip Fastly Config Update (#10251) 2020-09-08 13:11:12 -05:00
fetch.rake Remove RssReader (#12169) 2021-01-08 11:45:15 -05:00
forem.rake Create Default Nav Links In New Forem (RFC #237) (#14345) 2021-08-02 12:52:36 -04:00
metrics.rake Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
pages.rake Rubocop: Address Metrics/BlockLength violations (#9246) 2020-07-10 13:53:32 -04:00
post_precompile_assets.rake Removed the autoprefixer-rails deprecated gem (#10017) 2020-08-26 17:38:24 -04:00