rails-api/active_model_serializers — pull request #276 by darthdeus (2013-04-13 06:59:33+00:00)
Title: Fix serialization_scope to check for private/protected methods

The semantics of `respond_to?` on Ruby 2.0 have changed to return `false` for protected methods, which is usually the case for helpers like `current_user`.

Since the scope is being loaded by `send`, it will access private/protected methods anyway.