jeremyevans-exception_notification 1.0.20080923 → 1.0.20081208
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/exception_notifiable.rb +2 -3
- data/lib/exception_notifier_helper.rb +2 -2
- metadata +3 -3
data/lib/exception_notifiable.rb
CHANGED
@@ -48,10 +48,9 @@ module ExceptionNotifiable
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def exceptions_to_treat_as_404
|
51
|
-
exceptions = [
|
52
|
-
ActionController::UnknownController,
|
53
|
-
ActionController::UnknownAction]
|
51
|
+
exceptions = [ActionController::UnknownController, ActionController::UnknownAction]
|
54
52
|
exceptions << ActionController::RoutingError if ActionController.const_defined?(:RoutingError)
|
53
|
+
exceptions << ActiveRecord::RecordNotFound if Object.const_defined?(:ActiveRecord)
|
55
54
|
exceptions
|
56
55
|
end
|
57
56
|
end
|
@@ -67,12 +67,12 @@ module ExceptionNotifierHelper
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def filter_sensitive_post_data_parameters(parameters)
|
70
|
-
exclude_raw_post_parameters? ? @controller.send
|
70
|
+
exclude_raw_post_parameters? ? @controller.send(:filter_parameters, parameters) : parameters
|
71
71
|
end
|
72
72
|
|
73
73
|
def filter_sensitive_post_data_from_env(env_key, env_value)
|
74
74
|
return env_value unless exclude_raw_post_parameters?
|
75
75
|
return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
|
76
|
-
return @controller.send
|
76
|
+
return @controller.send(:filter_parameters, {env_key => env_value}).values[0]
|
77
77
|
end
|
78
78
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeremyevans-exception_notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.20081208
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rails Core Team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-08 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -63,7 +63,7 @@ rubyforge_project:
|
|
63
63
|
rubygems_version: 1.2.0
|
64
64
|
signing_key:
|
65
65
|
specification_version: 2
|
66
|
-
summary: Gemified exception_notification rails plugin, compatible with Rails 2.
|
66
|
+
summary: Gemified exception_notification rails plugin, compatible with Rails 2.2
|
67
67
|
test_files:
|
68
68
|
- test/exception_notifier_helper_test.rb
|
69
69
|
- test/test_helper.rb
|