Sha256: 88f9af07018696be39291a955ae08e1b784178362d3cb5f536dd81c9923094e7

Contents?: true

Size: 318 Bytes

Versions: 23

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

module Concerns
  module LogWrapper
    extend ActiveSupport::Concern
    include Praxis::Callbacks

    included do
      before :around do |_controller, callee|
        # Log something at the beginning
        callee.call
        # Log something at the end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
praxis-2.0.0 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.40 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.39 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.38 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.37 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.36 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.35 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.34 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.33 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.32 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.31 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.30 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.29 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.28 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.27 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.26 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.25 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.24 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.23 spec/spec_app/app/concerns/log_wrapper.rb
praxis-2.0.pre.22 spec/spec_app/app/concerns/log_wrapper.rb