background_lite 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module BackgroundLite
27
27
  cattr_accessor :slow_threshold
28
28
 
29
29
  def self.config #:nodoc:
30
- @config ||= YAML.load(File.read("#{RAILS_ROOT}/config/background.yml")) rescue { RAILS_ENV => {} }
30
+ @config ||= YAML.load(File.read("#{Rails.root}/config/background.yml")) rescue { RAILS_ENV => {} }
31
31
  end
32
32
 
33
33
  def self.default_config #:nodoc:
@@ -41,8 +41,8 @@ module BackgroundLite
41
41
  end
42
42
 
43
43
  def self.default_logger #:nodoc:
44
- fallback_logger = if Object.const_defined?("RAILS_DEFAULT_LOGGER")
45
- RAILS_DEFAULT_LOGGER
44
+ fallback_logger = if Object.const_defined?("Rails")
45
+ Rails.logger
46
46
  else
47
47
  logger = Logger.new(STDOUT)
48
48
  logger.level = Logger::WARN
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: background_lite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- version: "0.3"
9
+ - 1
10
+ version: 0.3.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Thomas Kadauke