Class: ActiveError::Instance
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActiveError::Instance
- Defined in:
- app/models/active_error/instance.rb
Instance Method Summary collapse
Instance Method Details
#request ⇒ Object
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_display ⇒ Object
15 16 17 |
# File 'app/models/active_error/instance.rb', line 15 def user_agent_display "#{platform} #{browser} #{version}" end |