Sha256: a938aa34e6936c07192b24f25f7ddb724182aa00461d6b276baac59328f6b5ea
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
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.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.2 | rails/init.rb |