14 lines
257 B
Ruby
14 lines
257 B
Ruby
class Sessions::MenusController < ApplicationController
|
|
disallow_account_scope
|
|
|
|
layout "public"
|
|
|
|
def show
|
|
@accounts = Current.identity.accounts
|
|
|
|
if @accounts.one?
|
|
redirect_to root_url(script_name: @accounts.first.slug)
|
|
end
|
|
end
|
|
end
|