Module: Itsf::Backend::Features

Included in:
Itsf::Backend
Defined in:
lib/itsf/backend/features.rb

Instance Method Summary collapse

Instance Method Details

#features?(name) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/itsf/backend/features.rb', line 8

def features?(name)
  # Gem::Specification.find_all_by_name(name.to_s).any? && Itsf::Backend::Configuration.enabled_features.include?(name)
  Itsf::Backend::Configuration.enabled_features.include?(name)
end

#gem_available?(name) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/itsf/backend/features.rb', line 4

def gem_available?(name)
  Gem::Specification.find_all_by_name(name.to_s).any?
end