Class: ChiliProject::Compatibility

Inherits:
Object
  • Object
show all
Defined in:
lib/chili_project/compatibility.rb

Class Method Summary collapse

Class Method Details

.method_missing(method, *args) ⇒ Object

Catch-all to be overwritten be future compatibility checks.


42
43
44
# File 'lib/chili_project/compatibility.rb', line 42

def self.method_missing(method, *args)
  method.to_s.ends_with?('?') ? false : super
end

.using_acts_as_journalized?Boolean

Is acts_as_journalized included?

Released: ChiliProject 2.0.0


20
21
22
# File 'lib/chili_project/compatibility.rb', line 20

def self.using_acts_as_journalized?
  Journal.included_modules.include?(Redmine::Acts::Journalized)
end

.using_jquery?Boolean

Is any jQuery version available on all pages?

This does not take modifications into account, that may be performed by plugins.

Released: ChiliProject 2.5.0


30
31
32
# File 'lib/chili_project/compatibility.rb', line 30

def self.using_jquery?
  true
end

.using_liquid?Boolean

Is Liquid markup available?

Released: ChiliProject 3.0.0


37
38
39
# File 'lib/chili_project/compatibility.rb', line 37

def self.using_liquid?
  true
end