Sha256: 4c72af830d514959022b5e4729d38bcf1822b563690a2017981c3839ee6966ad

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

module Kiqr
  module Controllers
    module UrlHelpers
      # Generate a URL for the invitation token.
      def invitation_token_url(token)
        user_invitation_url(token: token, account_id: nil)
      end

      # Check if the current path matches the base path provided, ignoring query parameters.
      def current_base_path?(path)
        request.path.start_with?(path.split("?").first)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiqr-0.1.0.alpha1 lib/kiqr/controllers/url_helpers.rb