Skip to content

Commit

Permalink
[api] Remove inclusion for Event subclases
Browse files Browse the repository at this point in the history
Now that all the classes follow Rails name convention, we do not need
to include the files one by one.

Remove also the `require_dependency 'event/all'` in `request_controller`.
  • Loading branch information
Ana06 committed Dec 6, 2017
1 parent d60d6b7 commit cdfe0e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/api/app/controllers/request_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_dependency 'event/all'

include MaintenanceHelper

class RequestController < ApplicationController
Expand Down
3 changes: 2 additions & 1 deletion src/api/app/models/event.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
require_relative 'event/all'
module Event
end
10 changes: 0 additions & 10 deletions src/api/app/models/event/all.rb

This file was deleted.

0 comments on commit cdfe0e1

Please sign in to comment.