Commit 2428a0b2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add project_services dir to autoload path

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 86a8796b
...@@ -23,14 +23,6 @@ ...@@ -23,14 +23,6 @@
# visibility_level :integer default(0), not null # visibility_level :integer default(0), not null
# #
require_relative "project_services/assembla_service"
require_relative "project_services/campfire_service"
require_relative "project_services/emails_on_push_service"
require_relative "project_services/flowdock_service"
require_relative "project_services/gitlab_ci_service"
require_relative "project_services/hipchat_service"
require_relative "project_services/pivotaltracker_service"
class Project < ActiveRecord::Base class Project < ActiveRecord::Base
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
include Gitlab::VisibilityLevel include Gitlab::VisibilityLevel
......
...@@ -38,7 +38,7 @@ class EmailsOnPushService < Service ...@@ -38,7 +38,7 @@ class EmailsOnPushService < Service
def fields def fields
[ [
{ type: 'textarea', name: 'recipients', placeholder: 'Recipients' }, { type: 'textarea', name: 'recipients', placeholder: 'Emails separated by whitespace' },
] ]
end end
end end
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
- if type == 'text' - if type == 'text'
= f.text_field name, class: "input-xlarge", placeholder: placeholder = f.text_field name, class: "input-xlarge", placeholder: placeholder
- elsif type == 'textarea' - elsif type == 'textarea'
= f.textarea name, rows: 5 = f.text_area name, rows: 5, class: "input-xlarge", placeholder: placeholder
- elsif type == 'checkbox' - elsif type == 'checkbox'
= f.check_box name = f.check_box name
......
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable. # Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/models/concerns) config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/models/concerns #{config.root}/app/models/project_services)
# Only load the plugins named here, in the order given (default is alphabetical). # Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named. # :all can be used as a placeholder for all plugins not explicitly named.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment