mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
add swf to asset pipeline. Fixes #1311
This commit is contained in:
parent
7c1cd2a144
commit
22e166c370
5 changed files with 5 additions and 2 deletions
|
@ -28,4 +28,4 @@
|
|||
//= require niftycube
|
||||
//= require superfish
|
||||
//= require supersubs
|
||||
//= require swfobject
|
||||
//= require swf_fu
|
0
public/swfs/expressInstall.swf → app/assets/swfs/expressInstall.swf
Executable file → Normal file
0
public/swfs/expressInstall.swf → app/assets/swfs/expressInstall.swf
Executable file → Normal file
|
@ -1,5 +1,5 @@
|
|||
<% @swf_count ||= 0 -%>
|
||||
<div class="open-flash-chart"><%= swf_tag "open-flash-chart.swf",
|
||||
<div class="open-flash-chart"><%= swf_tag asset_path("open-flash-chart"),
|
||||
:flashvars => { 'width' => width, 'height' => height, 'data' => data},
|
||||
:parameters => { 'allowScriptAccess' => 'sameDomain', 'wmode' => 'transparent'},
|
||||
:div_id => "chart_#{@swf_count+=1}",
|
||||
|
|
|
@ -64,6 +64,9 @@ module Tracksapp
|
|||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
|
||||
# add /app/assets/swfs to asset pipeline for charts
|
||||
config.assets.paths << Rails.root.join("app", "assets", "swfs")
|
||||
|
||||
# configure Tracks to handle deployment in a subdir
|
||||
config.action_controller.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue