Class: ActiveError::Instance

Inherits:
ApplicationRecord show all
Defined in:
app/models/active_error/instance.rb

Instance Method Summary collapse

Instance Method Details

#requestObject



19
20
21
22
23
# File 'app/models/active_error/instance.rb', line 19

def request
  @request ||= ActionDispatch::Request.new(request_env).tap do |req|
    req.session = session.presence || {}
  end
end

#user_agent_displayObject



15
16
17
# File 'app/models/active_error/instance.rb', line 15

def user_agent_display
  "#{platform} #{browser} #{version}"
end