Module: NimbleNodes
- Defined in:
- lib/nimble_nodes.rb,
lib/nimble_nodes/app.rb,
lib/nimble_nodes/dynos.rb,
lib/nimble_nodes/report.rb,
lib/nimble_nodes/server.rb,
lib/nimble_nodes/workers.rb,
lib/nimble_nodes/settings.rb,
lib/nimble_nodes/middleware.rb,
lib/nimble_nodes/rails/filter.rb
Defined Under Namespace
Modules: App, Dynos, Rails, Workers
Classes: Middleware, Report, Server, Settings
Class Method Summary
collapse
Class Method Details
.legacy? ⇒ Boolean
Check Rails version
returns true if gem is loaded in a pre 2.3 version of rails
7
8
9
|
# File 'lib/nimble_nodes.rb', line 7
def self.legacy?
defined?(RAILS_GEM_VERSION) and RAILS_GEM_VERSION.slice(0..2).to_f < 2.3
end
|
.lib_path(path = '') ⇒ Object
22
23
24
|
# File 'lib/nimble_nodes.rb', line 22
def self.lib_path(path='')
File.dirname(__FILE__) + '/nimble_nodes' + path
end
|
.paused? ⇒ Boolean
16
17
18
|
# File 'lib/nimble_nodes.rb', line 16
def self.paused?
not NimbleNodes::Settings[:paused_at].nil?
end
|