Sha256: 811a39665b300ee9b8f1ea9514f3b7b2553db31dc49a9508cb6f28032a161213
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
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.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'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swf_fu-1.3.3 | rails/init.rb |