Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
taqueci committed Dec 21, 2019
2 parents 7cd9adb + 62f4513 commit 21f4e92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name 'Redmine Local Avatars plugin'
author 'Andrew Chaika and Luca Pireddu'
description 'This plugin lets users upload avatars directly into Redmine'
version '1.0.5.1.0'
version '1.0.5.2.0'
end

receiver = Object.const_defined?('ActiveSupport::Reloader') ? ActiveSupport::Reloader : ActionDispatch::Callbacks
Expand All @@ -31,8 +31,11 @@
require_dependency 'principal'
require_dependency 'user'

avatars_helper = ApplicationHelper.method_defined?(:avatar) ?
ApplicationHelper : AvatarsHelper

AccountController.send(:include, LocalAvatarsPlugin::AccountControllerPatch)
ApplicationHelper.send(:include, LocalAvatarsPlugin::ApplicationAvatarPatch)
avatars_helper.send(:include, LocalAvatarsPlugin::ApplicationAvatarPatch)
MyController.send(:include, LocalAvatarsPlugin::MyControllerPatch)
User.send(:include, LocalAvatarsPlugin::UsersAvatarPatch)
UsersController.send(:include, LocalAvatarsPlugin::UsersControllerPatch)
Expand Down

0 comments on commit 21f4e92

Please sign in to comment.