mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 07:49:01 +00:00
feat(goals): gate Goals v2 behind beta features toggle
Add require_beta_features! to GoalsController and GoalPledgesController, hide the Goals nav item for non-beta users, and tag index/show headers with the Beta pill marker. Update controller tests to enable the preference in setup and assert the redirect for users without access.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class GoalPledgesController < ApplicationController
|
||||
before_action :require_beta_features!
|
||||
before_action :set_goal
|
||||
before_action :set_pledge, only: %i[renew destroy]
|
||||
rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
|
||||
|
||||
Reference in New Issue
Block a user