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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
10d8b77b
Commit
10d8b77b
authored
Nov 20, 2012
by
Alexander Simonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean old rails2 style code
parent
ebcbe0c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
config/initializers/4_resque.rb
config/initializers/4_resque.rb
+2
-4
No files found.
config/initializers/4_resque.rb
View file @
10d8b77b
# Custom Redis configuration
rails_root
=
ENV
[
'RAILS_ROOT'
]
||
File
.
dirname
(
__FILE__
)
+
'/../..'
rails_env
=
ENV
[
'RAILS_ENV'
]
||
'development'
config_file
=
File
.
join
(
rails_root
,
'config'
,
'resque.yml'
)
config_file
=
Rails
.
root
.
join
(
'config'
,
'resque.yml'
)
if
File
.
exists?
(
config_file
)
resque_config
=
YAML
.
load_file
(
config_file
)
Resque
.
redis
=
resque_config
[
rails_
env
]
Resque
.
redis
=
resque_config
[
Rails
.
env
]
end
# Queues
...
...
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