rails/init.rb in swf_fu-1.3.2 vs rails/init.rb in swf_fu-1.3.3

- old
+ new

@@ -1,13 +1,10 @@ -Dir[File.join(File.dirname(__FILE__), '../vendor/*/lib')].each do |path| - $LOAD_PATH.unshift path -end - require 'action_view/helpers/asset_tag_helper' require 'swf_fu' -# ActionView::Helpers is for recent rails version, ActionView::Base for older ones (in which case ActionView::Helpers::AssetTagHelper is also needed for tests...) +# ActionView::Helpers is for recent rails version, ActionView::Base for older ones +# (in which case ActionView::Helpers::AssetTagHelper is also needed for tests...) ActionView::Helpers.class_eval { include ActionView::Helpers::SwfFuHelper } # For recent rails version... ActionView::Base.class_eval { include ActionView::Helpers::SwfFuHelper } # ...and for older ones ActionView::TestCase.class_eval { include ActionView::Helpers::SwfFuHelper } if defined? ActionView::TestCase # ...for tests in older versions ActionView::Helpers::AssetTagHelper.register_javascript_include_default 'swfobject' \ No newline at end of file