Module: ClerkRails::Helpers::ViewAndController
- Defined in:
- lib/clerk_rails/helpers.rb
Instance Method Summary collapse
Instance Method Details
#account_signed_in? ⇒ Boolean
22 23 24 |
# File 'lib/clerk_rails/helpers.rb', line 22 def account_signed_in? !current_account.nil? end |
#current_account ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/clerk_rails/helpers.rb', line 26 def current_account @clerk_current_account ||= begin if [:__session] Clerk::Account.from_session_token([:__session]) else nil end end end |