excursion 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/excursion/railtie.rb +4 -1
- data/lib/excursion/version.rb +1 -1
- metadata +2 -2
data/lib/excursion/railtie.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
module Excursion
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
config.after_initialize do |app|
|
4
|
-
if Excursion.configuration.register_app == true &&
|
4
|
+
if Excursion.configuration.register_app == true &&
|
5
|
+
!Excursion.configuration.datastore.nil? &&
|
6
|
+
!defined?(Rails::Generators::Base) && # Do not register on init when running a generator (is there a better way to detect this? Maybe $0 == 'rails' && ARGV.include?('generate') or 'g')
|
7
|
+
File.basename($0) != "rake" # Do not register on init when running a rake task
|
5
8
|
app.reload_routes!
|
6
9
|
Excursion::Pool.register_application(app)
|
7
10
|
end
|
data/lib/excursion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excursion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|