title: ActiveModelSerializers gem: how to pass parameter to serializer
body: <p>I'm updating the gem <a href="https://github.com/rails-api/active_model_serializers" rel="nofollow">active_model_serializers</a> from version 0.9.5 to 0.10.1. For version 0.9.5 the code below worked.</p>
  
  <p>Controller:</p>
  
  <pre><code>def create
    ...
    render json: @dia, app_rights: app_rights(@dia)
  end
  </code></pre>
  
  <p>Serializer:</p>
  
  <pre><code>class Api::V1::SerializerWithSessionMetadata &lt; ActiveModel::Serializer
    attributes :app_rights
    def app_rights
      serialization_options[:app_rights]
    end
  end
  </code></pre>
  
  <p>The method <code>serialization_options</code> has been deprecated in version 0.10.1. </p>
  
  <ul>
  <li><a href="https://github.com/rails-api/active_model_serializers/blob/master/docs/howto/passing_arbitrary_options.md" rel="nofollow">Here</a> it is suggested to use <code>instance_options</code> instead.</li>
  <li><a href="https://github.com/rails-api/active_model_serializers/issues/599" rel="nofollow">Here</a> it is suggested to use <code>options</code>: "instance_options is only available in the master branch, not in the current RC. In the current RC, you have to use options instead".</li>
  <li>There are also suggestions for <code>@options</code> and <code>@instance_options</code>.</li>
  </ul>
  
  <p>I have tried replacing <code>serialization_options</code> with all the above options. However, in all cases, after updating the gem, the json produced does not include <code>app_rights</code>. What am I doing wrong?</p>