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 bdc27e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
require 'emojibutton_formatter_textile_patch'
require 'emojibutton_formatter_markdown_patch'
require 'emojibutton_helper_patch'
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'
Expand Down

0 comments on commit bdc27e6

Please sign in to comment.