Sha256: e5081ce83ef72b3b9f3aba486ee0f648ab811672e6fc2a8e24c2e97d850d0387

Contents?: true

Size: 245 Bytes

Versions: 1

Compression:

Stored size: 245 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-0.0.1 lib/tasks/concerns/redirectable.rb