Skip to content

Commit

Permalink
Merge pull request #5 from evolvingweb/redmine-5-compatibility
Browse files Browse the repository at this point in the history
Redmine 5 compatibility
  • Loading branch information
burak-ikiler-ew authored May 22, 2024
2 parents 0f2c864 + 45b5dee commit d6022fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
require 'redmine'

require_dependency "editor_paste_patch"
Rails.configuration.to_prepare do
require_dependency "editor_paste_patch"
end

Redmine::Plugin.register :redmine_paste_text do
name 'Redmine Paste Text'
author 'Kevin Porras'
url 'https://github.com/evolvingweb/redmine_paste_text'
author_url 'http://evolvingweb.ca'
description 'Contains paste extension inspired by https://puppypaste.com/'
version '0.0.1'
version '0.0.2'
requires_redmine :version_or_higher => '3.4'

end
2 changes: 1 addition & 1 deletion lib/editor_paste_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

require_dependency 'application_helper'

class EditorPasteCSS < Redmine::Hook::ViewListener
class EditorPastePatch < Redmine::Hook::ViewListener
render_on :view_layouts_base_html_head, :partial => "redmine_paste_text/redmine_paste_text_partial"
end

0 comments on commit d6022fb

Please sign in to comment.