Project

General

Profile

How to get current Redmine version from code

Added by Tide _ over 10 years ago

I need to see what version of Redmine is installed so my pugin can do one thing if the version is equal to or higher than 2.1. Does anyone know how to do this? I have Googled but found nothing. I know you can see what rails version is running using Rails::VERSION::MAJOR. Is there a similar method for the Redmine version?


Replies (1)

RE: How to get current Redmine version from code - Added by Tide _ over 10 years ago

Nevermind, The light bulb went off and I Googled Redmine::VERSION::MAJOR and found reults.

Redmine::VERSION::MAJOR == 2 and Redmine::VERSION::MINOR >= 1

Should have known it would be that easy.

    (1-1/1)