mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-04-27 14:57:43 +00:00
remove unused class attribute
This commit is contained in:
parent
ea019c721e
commit
4cba68f095
1 changed files with 1 additions and 3 deletions
|
|
@ -2,10 +2,8 @@ module Grape
|
||||||
module Formatter
|
module Formatter
|
||||||
module ActiveModelSerializers
|
module ActiveModelSerializers
|
||||||
class << self
|
class << self
|
||||||
attr_reader :endpoint
|
|
||||||
|
|
||||||
def call(resource, env)
|
def call(resource, env)
|
||||||
@endpoint = env['api.endpoint']
|
endpoint = env['api.endpoint']
|
||||||
options = endpoint.namespace_options.merge(endpoint.route_options)
|
options = endpoint.namespace_options.merge(endpoint.route_options)
|
||||||
|
|
||||||
if resource.respond_to?(:to_ary) && !resource.empty?
|
if resource.respond_to?(:to_ary) && !resource.empty?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue