responder_controller 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/responder_controller.rb +2 -2
- data/responder_controller.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
*ResponderController 0.1.2*
|
2
|
+
|
3
|
+
* If a requested scope errors out, raise a BadScope exception. Tell rails (if present) to render these as 422s.
|
4
|
+
|
1
5
|
*ResponderController 0.1.1*
|
2
6
|
|
3
7
|
* Use AR#scoped instead of #all to create initial query, as #all gives a literal array (whoops.)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/responder_controller.rb
CHANGED
@@ -11,9 +11,9 @@ module ResponderController
|
|
11
11
|
mod.send :include, InstanceMethods
|
12
12
|
mod.send :include, Actions
|
13
13
|
|
14
|
-
# Uncaught BadScope exceptions become
|
14
|
+
# Uncaught BadScope exceptions become 400s
|
15
15
|
if defined? ActionDispatch
|
16
|
-
ActionDispatch::ShowExceptions.rescue_responses[BadScope.name] = :
|
16
|
+
ActionDispatch::ShowExceptions.rescue_responses[BadScope.name] = :bad_request
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|