Sha256: 6f19bcc717252ccb0a1a87092cc64f3417b51c9be68c57424a816b3eb5fb4f98
Contents?: true
Size: 377 Bytes
Versions: 6
Compression:
Stored size: 377 Bytes
Contents
module Peek module ControllerHelpers extend ActiveSupport::Concern included do if respond_to? :helper_method helper_method :peek_enabled? helper_method :peek_request_id end end protected def peek_enabled? Peek.enabled? end def peek_request_id request.env['action_dispatch.request_id'] end end end
Version data entries
6 entries across 6 versions & 3 rubygems