remove unused class attribute

This commit is contained in:
Jonathan Richard Henry Evans 2013-08-29 15:53:10 +01:00
parent ea019c721e
commit 4cba68f095

View file

@ -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?