Skip to content

Instantly share code, notes, and snippets.

@meineerde
Created August 31, 2010 15:43
Show Gist options
  • Select an option

  • Save meineerde/559225 to your computer and use it in GitHub Desktop.

Select an option

Save meineerde/559225 to your computer and use it in GitHub Desktop.
require 'redmine'
# Patches to the Redmine core.
require 'dispatcher'
Dispatcher.to_prepare do
require_dependency 'attachment'
Attachment.storage_path = ENV['RAILS_FILES'] || "#{RAILS_ROOT}/files"
end
Redmine::Plugin.register :redmine_finn_deployment do
name 'Redmine Deployment plugin'
author 'Holger Just'
author_url 'http://www.finn.de'
description 'This plugin supports the Redmine deployment'
version '0.1'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment