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.

3 comments
Comment actions Permalink

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
Comment actions Permalink

Thanks! Worked like a charm!)

0
Comment actions Permalink

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

0

Please sign in to leave a comment.