lib/grape/api/instance.rb in grape-2.1.1 vs lib/grape/api/instance.rb in grape-2.1.2
- old
+ new
@@ -44,10 +44,10 @@
end
# Parses the API's definition and compiles it into an instance of
# Grape::API.
def compile
- @instance ||= new
+ @instance ||= new # rubocop:disable Naming/MemoizedInstanceVariableName
end
# Wipe the compiled API so we can recompile after changes were made.
def change!
@instance = nil