lib/redmineup.rb in redmineup-1.0.4 vs lib/redmineup.rb in redmineup-1.0.5
- old
+ new
@@ -41,13 +41,17 @@
require 'redmineup/helpers/external_assets_helper'
require 'redmineup/helpers/form_tag_helper'
require 'redmineup/helpers/calendars_helper'
require 'redmineup/assets_manager'
-require 'redmineup/patches/liquid_patch' unless BigDecimal.respond_to?(:new)
+require 'redmineup/patches/liquid_patch'
module Redmineup
GEM_NAME = 'redmineup'.freeze
+
+ def self.plugin_installed?(plugin_id)
+ Rails.root.join("plugins/#{plugin_id}/init.rb").exist?
+ end
end
require 'application_record' unless defined?(ApplicationRecord)
if defined?(ActiveRecord::Base)