Fix for stack level too deep error #4

Merged
merged 1 commit into from Aug 13, 2012
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