Sha256: a1cf50ae260608b910b3c469ce1647c511c06f0a01272aab99cc004f9b57f6b2

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

module Tarquinn
  extend ActiveSupport::Concern

  included do
    before_action :perform_redirection
  end

  private

  def redirector_engine
    self.class.redirector_builder.build(self)
  end

  def perform_redirection
     redirector_engine.perform_redirect
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tarquinn-0.1.0 lib/tarquinn/concern.rb
tarquinn-0.0.2 lib/tarquinn/concern.rb
tarquinn-0.0.1 lib/tarquinn/concern.rb