How to detect the type of project in RubyMine?

Hello.
How can I determine using OpenAPI if RubyMine has currently opened Ruby On Rails-project?

Thanks.

0

In RubyMine all projects consist of 1 module, but in IDEA + ruby plugin project may contain several modules. If you know module you can check org.jetbrains.plugins.ruby.rails.model.RailsApp.fromModule(com.intellij.openapi.module.Module module) != null

0
Avatar
Permanently deleted user

Thanks! Worked like a charm!)

0
Avatar
Permanently deleted user

Sorry. It was message dupplicate. Please remove this message - I haven't found how to do this.

0

请先登录再写评论。