lib/grape/api.rb in grape-2.1.1 vs lib/grape/api.rb in grape-2.1.2
- old
+ new
@@ -30,11 +30,11 @@
# When inherited, will create a list of all instances (times the API was mounted)
# It will listen to the setup required to mount that endpoint, and replicate it on any new instance
def inherited(api)
super
- api.initial_setup(Grape::API == self ? Grape::API::Instance : @base_instance)
+ api.initial_setup(self == Grape::API ? Grape::API::Instance : @base_instance)
api.override_all_methods!
end
# Initialize the instance variables on the remountable class, and the base_instance
# an instance that will be used to create the set up but will not be mounted
@@ -106,10 +106,10 @@
replay_step_on(instance, setup_step)
end
end
def respond_to?(method, include_private = false)
- super(method, include_private) || base_instance.respond_to?(method, include_private)
+ super || base_instance.respond_to?(method, include_private)
end
def respond_to_missing?(method, include_private = false)
base_instance.respond_to?(method, include_private)
end