Redmine 3.x support

This commit is contained in:
Karel Pičman 2018-12-19 16:27:02 +01:00
parent 9ab09c2777
commit 70ac21518d
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,8 @@
source 'https://rubygems.org'
gem 'acts_as_list'
gem 'activemodel-serializers-xml'
require 'rails'
if Gem::Version.new(Rails.gem_version) >= Gem::Version.new('5.0.0')
gem 'acts_as_list'
gem 'activemodel-serializers-xml'
end

View File

@ -7,7 +7,7 @@ Redmine::Plugin.register :redmine_custom_workflows do
version '0.1.6'
url 'http://www.redmine.org/plugins/custom-workflows'
requires_redmine version_or_higher: '4.0.0'
requires_redmine version_or_higher: '3.0.0'
menu :admin_menu, :custom_workflows, {:controller => 'custom_workflows', :action => 'index'},
:if => Proc.new { User.current.admin? }, :caption => :label_custom_workflow_plural,