Sha256: 3646df01f9f9e2c32a1664d47e5c7be69cc7b65a3db57de6fb60a114d5cf62f0
Contents?: true
Size: 258 Bytes
Versions: 1
Compression:
Stored size: 258 Bytes
Contents
module ActiveModelSerializers class SerializationContext attr_reader :request_url, :query_parameters def initialize(request) @request_url = request.original_url[/\A[^?]+/] @query_parameters = request.query_parameters end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc4 | lib/active_model_serializers/serialization_context.rb |