mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +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 ActiveModelSerializers
|
||||
class << self
|
||||
attr_reader :endpoint
|
||||
|
||||
def call(resource, env)
|
||||
@endpoint = env['api.endpoint']
|
||||
endpoint = env['api.endpoint']
|
||||
options = endpoint.namespace_options.merge(endpoint.route_options)
|
||||
|
||||
if resource.respond_to?(:to_ary) && !resource.empty?
|
||||
|
|
|
|||
Loading…
Reference in a new issue