Permalink
Browse files

around for add_http_status_to_jsonp_response issue

  • Loading branch information...
1 parent e9900c0 commit a301188f4f0d3bd4fcd3d4604f494f9aea55c05c @shao1555 shao1555 committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/acts_as_api/config.rb
@@ -49,10 +49,10 @@ def allow_jsonp_callback
# If true the jsonp function call will get the http status passed
# as a second parameter
def add_http_status_to_jsonp_response
- @add_http_status_to_jsonp_response || true
+ @add_http_status_to_jsonp_response.nil? ? true : @add_http_status_to_jsonp_response
end
end
end
-end
+end

0 comments on commit a301188

Please sign in to comment.