Sha256: fc31cedc56dc16cd672bda116114c72fd427dfdae9d2b2365a5bfc244838e16f
Contents?: true
Size: 655 Bytes
Versions: 4
Compression:
Stored size: 655 Bytes
Contents
module LesliBabel class ModuleService < Lesli::ApplicationLesliService def list # get the list of installed engines, including: rails_core, rails_builder, rails_engine babel_modules_names = Lesli::System.engines.map { |engine, engine_info| engine_info[:code] } # get list of ids of installed engines and available third-party apps Module .where(:code => babel_modules_names) # -> only installed engines #.or(Module.where.not(:platform => ["rails_core", "rails_builder", "rails_engine"])) .map { |engine| engine.id } end end end
Version data entries
4 entries across 4 versions & 1 rubygems