Sha256: 14409cc0afc9d770abb2acea7d541d934c050eb3e8ab53bb363ac5d1c1cc1fb7

Contents?: true

Size: 277 Bytes

Versions: 46

Compression:

Stored size: 277 Bytes

Contents

module Agilibox::BackUrlConcern
  extend ActiveSupport::Concern

  private

  def default_back_url
  end

  def back_url
    [
      params[:back_url],
      request.referer,
      default_back_url,
      main_app.root_path,
      "/",
    ].select(&:present?).first
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
agilibox-1.8.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.7.4 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.7.3 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.7.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.7.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.7.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.6.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.6.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.6.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.13 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.12 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.11 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.10 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.9 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.8 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.7 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.6 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.5 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.4 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.3 app/controllers/concerns/agilibox/back_url_concern.rb