Skip to content

Commit

Permalink
Add compatibility for Redmine v4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jr180180 committed Feb 1, 2020
1 parent 6c7e39d commit 8211083
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
require 'emojibutton_formatter_markdown_patch'
require 'emojibutton_helper_patch'

# The following two lines are required for Redmine 4.1
require 'sprockets/railtie' unless defined?(Sprockets)

unless File.exist?(Rails.root.join('app', 'assets', 'config', 'manifest.js'))
`mkdir -p app/assets/config && echo '{}' > app/assets/config/manifest.js`
end

Redmine::Plugin.register :redmine_emojibutton do
name 'Redmine Emoji Button'
author 'Tobias Fischer'
Expand Down

0 comments on commit 8211083

Please sign in to comment.