Add project_services dir to autoload path

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-17 12:58:44 +02:00
parent 86a8796b13
commit 2428a0b2dd
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
4 changed files with 3 additions and 11 deletions

View File

@ -23,14 +23,6 @@
# 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
include Gitlab::ShellAdapter
include Gitlab::VisibilityLevel

View File

@ -38,7 +38,7 @@ class EmailsOnPushService < Service
def fields
[
{ type: 'textarea', name: 'recipients', placeholder: 'Recipients' },
{ type: 'textarea', name: 'recipients', placeholder: 'Emails separated by whitespace' },
]
end
end

View File

@ -34,7 +34,7 @@
- if type == 'text'
= f.text_field name, class: "input-xlarge", placeholder: placeholder
- elsif type == 'textarea'
= f.textarea name, rows: 5
= f.text_area name, rows: 5, class: "input-xlarge", placeholder: placeholder
- elsif type == 'checkbox'
= f.check_box name

View File

@ -12,7 +12,7 @@ module Gitlab
# -- all .rb files in that directory are automatically loaded.
# 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).
# :all can be used as a placeholder for all plugins not explicitly named.