unsmart requiring helpers
This commit is contained in:
parent
4db60de568
commit
30b8f2d772
|
@ -388,6 +388,3 @@ DEPENDENCIES
|
|||
travis-yaml!
|
||||
unicorn
|
||||
yard-sinatra!
|
||||
|
||||
BUNDLED WITH
|
||||
1.11.2
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user