Skip to content

Commit

Permalink
update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aki360P committed Jul 8, 2023
1 parent 16dff02 commit 2cbd212
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ rake redmine:plugins:migrate RAILS_ENV=production
And restart your application server.


## Compatibility

This current version on github is compatible with Redmine 2.1 - 4.2.

It has been imported from lp:redminelocalavatars
incorporating the patch for 2.1 from chrisy at [https://bugs.launchpad.net/redminelocalavatars/+bug/1069808/comments/4](https://bugs.launchpad.net/redminelocalavatars/+bug/1069808/comments/4)

### Incompatibilities

As reported in [issue #12](https://github.com/ncoders/redmine_local_avatars/issues/12), the plugin "mega_calendar" ist not compatible with this plugin due to an issue with the provided users_controller_path.rb file.

### Old version on launchpad
Tested on Redmine trunk r4388 (version 1.0.3). Should be compatible with
all Redmine versions 1.0.x.

At the moment the plugin doesn't work when running in development mode.

## Authors

* A.Chaika wrote the original version:
Expand Down
15 changes: 1 addition & 14 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,10 @@
author_url 'https://github.com/ncoders/redmine_local_avatars'
description 'This plugin lets users upload avatars directly into Redmine'
version '1.0.7'
requires_redmine version_or_higher: '4.1'
end

receiver = Object.const_defined?('ActiveSupport::Reloader') ? ActiveSupport::Reloader : ActionDispatch::Callbacks
#receiver.to_prepare do
# require_dependency 'project'
# require_dependency 'principal'
# require_dependency 'user'

# helper_klass = ApplicationHelper.method_defined?(:avatar) ? ApplicationHelper : AvatarsHelper

# AccountController.send(:include, LocalAvatarsPlugin::AccountControllerPatch)
# helper_klass.send(:include, LocalAvatarsPlugin::ApplicationAvatarPatch)
# MyController.send(:include, LocalAvatarsPlugin::MyControllerPatch)
# User.send(:include, LocalAvatarsPlugin::UsersAvatarPatch)
# UsersController.send(:include, LocalAvatarsPlugin::UsersControllerPatch)
# UsersHelper.send(:include, LocalAvatarsPlugin::UsersHelperPatch)
#end

require File.expand_path('../lib/local_avatars', __FILE__)

Expand Down

0 comments on commit 2cbd212

Please sign in to comment.