spec/scenario/app/api.rb in grape-app-0.6.1 vs spec/scenario/app/api.rb in grape-app-0.6.2
- old
+ new
@@ -1,10 +1,12 @@
-require 'my_lib'
-
module API
extend ActiveSupport::Autoload
+ # Autoload API components
autoload :V1
+ autoload :Base
end
# Mount root API to app
-Grape::App.mount API::V1
+Grape::App.instance_eval do
+ mount API::V1
+end