Sha256: 368a68ec354672fc840c24242773db404933096ad0a2b046b794ece82a64d65a

Contents?: true

Size: 392 Bytes

Versions: 20

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  # We don't want to reset timeout timer on routes where we make requests automatically
  # (e.g. asking time before timeout or fetching comments).
  module SkipTimeoutable
    extend ActiveSupport::Concern

    private

    def skip_timeout
      request.env["devise.skip_timeoutable"] = true
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.8 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.7 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.6 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.10 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.9 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.5 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.8 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.4 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.3 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.7 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.5 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.2 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.1 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.4 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.0 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.3 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.0.rc2 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.27.0.rc1 app/controllers/concerns/decidim/skip_timeoutable.rb
decidim-core-0.26.2 app/controllers/concerns/decidim/skip_timeoutable.rb