# File lib/redmine_acts_as_taggable_on/redmine_plugin_patch.rb, line 2 def requires_acts_as_taggable_on @requires_acts_as_taggable_on = true if Redmine::VERSION::MAJOR < 2 fail 'redmine_acts_as_taggable_on requires Redmine 2.x or higher.' end end
# File lib/redmine_acts_as_taggable_on/redmine_plugin_patch.rb, line 9 def requires_acts_as_taggable_on? return true if @requires_acts_as_taggable_on # Safety net: If the plugin uses the acts-as-taggable-on gem the old way, # assume that it requires the tables. if File.exist?(gemfile_path) if File.read(gemfile_path).include? 'acts-as-taggable-on' warn_about_acts_as_taggable_on return true end end false end
Generated with the Darkfish Rdoc Generator 2.