Sha256: 49c8e69ccf00a398388927227dc6dddee06c3248015b7bca64fee49faf431662

Contents?: true

Size: 276 Bytes

Versions: 12

Compression:

Stored size: 276 Bytes

Contents

module Dorsale::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

12 entries across 12 versions & 1 rubygems

Version Path
dorsale-3.4.0 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.3.0 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.2.0 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.7 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.6 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.5 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.4 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.3 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.2 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.1 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.1.0 app/controllers/concerns/dorsale/back_url_concern.rb
dorsale-3.0.3 app/controllers/concerns/dorsale/back_url_concern.rb