1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Early access (#1272)

* Stubbing in early access

* Styling

* Title tweak

* Early access tweaks

Also removed the allow_browser helper as it tends to cause more headaches than we really care about at this point

* Lint
This commit is contained in:
Josh Pigford 2024-10-09 13:17:58 -05:00 committed by GitHub
parent 54596d51f7
commit 3893060f8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 226 additions and 6 deletions

View file

@ -1,5 +1,6 @@
class PagesController < ApplicationController
layout :with_sidebar
skip_before_action :authenticate_user!, only: %i[early_access]
layout :with_sidebar, except: %i[early_access]
include Filterable
@ -37,6 +38,11 @@ class PagesController < ApplicationController
def feedback
end
def invites
def early_access
redirect_to root_path if self_hosted?
@invite_codes_count = InviteCode.count
@invite_code = InviteCode.order("RANDOM()").limit(1).first
render layout: false
end
end