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.5.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.5.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.4.4 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.4.3 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.4.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.4.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.4.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.6 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.5 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.4 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.3 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.3.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.2.3 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.2.2 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.2.1 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.2.0 app/controllers/concerns/agilibox/back_url_concern.rb
agilibox-1.1.0 app/controllers/concerns/agilibox/back_url_concern.rb