Skip to content

Commit a365e13

Browse files
authored
Remove old docs about Authlogic, talk about exception apps
Close #819
1 parent 88ca61e commit a365e13

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

docs/integrations/rails.rst

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Ruby on Rails
22
=============
33

4-
In Rails, all uncaught exceptions will be automatically reported.
4+
In Rails, all uncaught exceptions will be automatically reported.
55

66
We support Rails 4 and newer.
77

@@ -56,29 +56,7 @@ Params and sessions
5656
end
5757
end
5858

59-
Authlogic
60-
---------
59+
Caveats
60+
-------
6161

62-
When using Authlogic for authentication, you can provide user context by
63-
binding to session ``after_persisting`` and ``after_destroy`` events in
64-
``user_session.rb``:
65-
66-
.. sourcecode:: ruby
67-
68-
class UserSession < Authlogic::Session::Base
69-
# events binding
70-
after_persisting :raven_set_user_context
71-
after_destroy :raven_clear_user_context
72-
73-
def raven_set_user_context
74-
Raven.user_context({
75-
'id' => self.user.id,
76-
'email' => self.user.email,
77-
'username' => self.user.username
78-
})
79-
end
80-
81-
def raven_clear_user_context
82-
Raven.user_context({})
83-
end
84-
end
62+
Currently, custom exception applications (`config.exceptions_app`) are not supported. If you are using a custom exception app, you must manually integrate Raven yourself.

0 commit comments

Comments
 (0)