Sha256: 3e36b2a0f846e38f92e94ae587fd0e489f856608abb5eb2a97b4e85837cef274
Contents?: true
Size: 688 Bytes
Versions: 8
Compression:
Stored size: 688 Bytes
Contents
module Errplane module Rails module AirTrafficController def errplane_request_data { :params => params.to_hash, :session_data => errplane_session_data, :controller => params[:controller], :action => params[:action], :request_url => errplane_request_url } end private def errplane_session_data session.respond_to?(:to_hash) ? session.to_hash : session.data end def errplane_request_url url = "#{request.protocol}#{request.host}" url << ":#{request.port}" unless [80, 443].include?(request.port) url << request.fullpath end end end end
Version data entries
8 entries across 8 versions & 1 rubygems