Sha256: 457da324fd74acb990eff790e71bdcbcd4c2fbd3e840a41816fb5594be2ec5c5

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 Bytes

Contents

module Tasuku::Concerns::Redirectable
  extend ActiveSupport::Concern

  included do
    def redirect_path_for(resource)
      params[:redirect_to] || after_completion_path_for(resource) || :back
    end

    private :redirect_path_for
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 lib/tasuku/concerns/redirectable.rb
tasuku-1.0.1 lib/tasuku/concerns/redirectable.rb
tasuku-0.1.1 lib/tasuku/concerns/redirectable.rb
tasuku-0.1.0 lib/tasuku/concerns/redirectable.rb