Module: NoBrainer
- Extended by:
- Autoload
- Defined in:
- lib/nobrainer.rb,
lib/no_brainer/document/store.rb,
lib/no_brainer/profiler/logger.rb,
lib/no_brainer/document/types/array.rb,
lib/no_brainer/profiler/slow_queries.rb
Defined Under Namespace
Modules: Autoload, Config, ConnectionManager, Document, Error, Fork, Generators, Geo, Loader, Profiler, QueryRunner, RQL, SymbolDecoration, System
Classes: Array, Binary, Boolean, Connection, Criteria, Enum, Lock, Railtie, ReentrantLock, Text, TypedArray
Class Method Summary
collapse
Methods included from Autoload
autoload, autoload_and_include, eager_autoload, eager_load!, extended
Class Method Details
36
37
38
|
# File 'lib/nobrainer.rb', line 36
def jruby?
RUBY_PLATFORM == 'java'
end
|
40
41
42
|
# File 'lib/nobrainer.rb', line 40
def rails4?
Gem.loaded_specs['activesupport'].version >= Gem::Version.new('4.0.0')
end
|
44
45
46
|
# File 'lib/nobrainer.rb', line 44
def rails5?
Gem.loaded_specs['activesupport'].version >= Gem::Version.new('5.0.0.beta')
end
|
48
49
50
|
# File 'lib/nobrainer.rb', line 48
def rails6?
Gem.loaded_specs['activesupport'].version >= Gem::Version.new('6.0.0')
end
|