Browse files

Bugfix: onload should be triggered in initializer

  • Loading branch information...
1 parent c4cd89c commit 1a60dc92c285b5e0afbf41510dab85f8fb7869c7 @vhochstein committed Mar 7, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/active_scaffold_export/engine.rb
View
7 lib/active_scaffold_export/engine.rb
@@ -7,10 +7,9 @@ class Engine < ::Rails::Engine
ActiveSupport.on_load(:action_controller) do
require "active_scaffold_export/config/core.rb"
end
- end
-
- ActiveSupport.on_load(:action_view) do
- include ActiveScaffold::Helpers::ExportHelpers
+ ActiveSupport.on_load(:action_view) do
+ include ActiveScaffold::Helpers::ExportHelpers
+ end
end
end
#end

0 comments on commit 1a60dc9

Please sign in to comment.