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:
parent
54596d51f7
commit
3893060f8e
7 changed files with 226 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue