unsmart requiring helpers

This commit is contained in:
Sven Fuchs 2016-03-24 12:53:57 +01:00
parent 4db60de568
commit 30b8f2d772
2 changed files with 6 additions and 10 deletions

View File

@ -388,6 +388,3 @@ DEPENDENCIES
travis-yaml!
unicorn
yard-sinatra!
BUNDLED WITH
1.11.2

View File

@ -1,8 +1,7 @@
require 'travis/api/app'
class Travis::Api::App
# Namespace for helpers.
module Helpers
Dir.glob("#{__dir__}/helpers/*.rb").each { |f| require f[%r[(?<=lib/).+(?=\.rb$)]] }
end
end
require 'travis/api/app/helpers/accept'
require 'travis/api/app/helpers/current_user'
require 'travis/api/app/helpers/db_follower'
require 'travis/api/app/helpers/flash'
require 'travis/api/app/helpers/mime_types'
require 'travis/api/app/helpers/respond_with'