Patch for Fiveruns Tuneup on Merb 1.0.11
Posted: April 23rd, 2009 | Author: Daniel Higginbotham | Filed under: Uncategorized | 1 Comment »FiveRuns Tuneup for Merb didn’t work out of the box for me. The following patch to the gem got it working:
Patch for Fiveruns Tuneup on Merb 1.0.11
- diff -r fiveruns_tuneup_merb-0.5.3/lib/fiveruns_tuneup_merb/instrumentation.rb fiveruns_tuneup_merb-0.5.3.updated/lib/fiveruns_tuneup_merb/instrumentation.rb
- 170c170
- < FiverunsTuneupMerb::Instrumentation.format_sql(query, adapter.send(:update_statement, query), attributes),
- ---
- > FiverunsTuneupMerb::Instrumentation.format_sql(query, adapter.send(:update_statement, attributes.keys, query), attributes),
- diff -r fiveruns_tuneup_merb-0.5.3/lib/fiveruns_tuneup_merb.rb fiveruns_tuneup_merb-0.5.3.updated/lib/fiveruns_tuneup_merb.rb
- 5,6c5,6
- < load_dependency 'merb-slices'
- < load_dependency 'fiveruns_tuneup_core'
- ---
- > load_dependency 'merb-slices', nil
- > load_dependency 'fiveruns_tuneup_core', nil

+1 for this fix.
Also, Tuneup only works with Mongrel.
Thin and Ebb, e.g., are no-gos.