Skip to content

Commit 499d9b4

Browse files
author
Joselito Tapangan
committed
Latest fixed for connecting with authorize.
1 parent 78400b2 commit 499d9b4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ After you install stackify-api-ruby you need to run the generator:
3636

3737
The generator creates a file 'config/initializers/stackify.rb' configuring stackify-api-ruby with your API key. You can change default settings there.
3838

39-
In your 'config/initializers/stackify.rb' file don't forget to add 'Stackify::EnvDetails.instance.set_rails_info'
40-
4139
### Non-Rails
4240

4341
For using stackify-api-ruby gem within any Ruby application add to top of your main file:

lib/stackify-api-ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def run async = true
107107
if Stackify.is_valid?
108108
at_exit { make_remained_job }
109109
t1 = Thread.new { Stackify.authorize }
110+
Stackify::EnvDetails.instance.set_rails_info if (Object.const_defined?('Rails::Info'))
110111
case Stackify.configuration.mode
111112
when MODES[:both]
112113
t2 = start_logging

0 commit comments

Comments
 (0)