Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
2428a0b2
Commit
2428a0b2
authored
Dec 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project_services dir to autoload path
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
86a8796b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
app/models/project.rb
app/models/project.rb
+0
-8
app/models/project_services/emails_on_push_service.rb
app/models/project_services/emails_on_push_service.rb
+1
-1
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+1
-1
config/application.rb
config/application.rb
+1
-1
No files found.
app/models/project.rb
View file @
2428a0b2
...
...
@@ -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
...
...
app/models/project_services/emails_on_push_service.rb
View file @
2428a0b2
...
...
@@ -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
...
...
app/views/projects/services/_form.html.haml
View file @
2428a0b2
...
...
@@ -34,7 +34,7 @@
-
if
type
==
'text'
=
f
.
text_field
name
,
class:
"input-xlarge"
,
placeholder:
placeholder
-
elsif
type
==
'textarea'
=
f
.
text
area
name
,
rows:
5
=
f
.
text
_area
name
,
rows:
5
,
class:
"input-xlarge"
,
placeholder:
placeholder
-
elsif
type
==
'checkbox'
=
f
.
check_box
name
...
...
config/application.rb
View file @
2428a0b2
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment