Skip to content

Commit

Permalink
This breaks the specs but the performance was hard to justify. The in…
Browse files Browse the repository at this point in the history
…sert images dialogue was taking 10+ seconds to render because job.name calls the Process step in dragonfly not the Fetch step. We need to access the name at the Fetch step for performance to remain good.
  • Loading branch information
parndt committed Jan 14, 2011
1 parent b240b79 commit 2db2ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/lib/images.rb
Expand Up @@ -28,7 +28,7 @@ class Engine < Rails::Engine
# /system/images/BAhbB1sHOgZmIiMyMDEwLzA5LzAxL1NTQ19DbGllbnRfQ29uZi5qcGdbCDoGcDoKdGh1bWIiDjk0MngzNjAjYw/refinery_is_awesome.jpg
# Officially the way to do it, from: http://markevans.github.com/dragonfly/file.URLs.html
app_images.url_suffix = proc{|job|
"/#{job.name}"
"/#{job.uid_basename}#{job.encoded_extname || job.uid_extname}"
}

### Extend active record ###
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/resources.rb
Expand Up @@ -26,7 +26,7 @@ class Engine < Rails::Engine
# /system/images/BAhbB1sHOgZmIiMyMDEwLzA5LzAxL1NTQ19DbGllbnRfQ29uZi5qcGdbCDoGcDoKdGh1bWIiDjk0MngzNjAjYw/refinery_is_awesome.pdf
# Officially the way to do it, from: http://markevans.github.com/dragonfly/file.URLs.html
app_resources.url_suffix = proc{|job|
"/#{job.name}"
"/#{job.uid_basename}#{job.encoded_extname || job.uid_extname}"
}

### Extend active record ###
Expand Down

0 comments on commit 2db2ab9

Please sign in to comment.