Permalink
Browse files

Merge pull request #4 from planio-gmbh/master

Fix for stack level too deep error
  • Loading branch information...
2 parents 4a7fc3f + b3b7b30 commit 81a68715a87028db8dc78c83be2fe9066f7f4995 @martin-denizet committed Aug 13, 2012
Showing with 7 additions and 7 deletions.
  1. +5 −4 init.rb
  2. +2 −3 lib/application_patch.rb
View
@@ -11,8 +11,9 @@
author_url 'https://github.com/martin-denizet'
description 'Attach screenshots from clipboard directly to a Redmine issue'
version '0.1.4'
- Dispatcher.to_prepare do
- ApplicationController.send(:include, AttachScreenshotPlugin::ApplicationControllerPatch)
- AccountController.send(:include, AttachScreenshotPlugin::CleanupTmp)
- end
+end
+
+Dispatcher.to_prepare do
+ ApplicationController.send(:include, AttachScreenshotPlugin::ApplicationControllerPatch)
+ AccountController.send(:include, AttachScreenshotPlugin::CleanupTmp)
end
@@ -1,5 +1,4 @@
-require 'account_controller'
-require 'ftools'
+require 'application_controller'
module AttachScreenshotPlugin
module ApplicationControllerPatch
@@ -19,6 +18,6 @@ def find_current_user_with_screenshot
find_current_user_without_screenshot
end
end
- end
+ end
end
end

0 comments on commit 81a6871

Please sign in to comment.