From 18f41d3533ba655b00a08216cffef190a284f9cd Mon Sep 17 00:00:00 2001 From: William Schey Date: Thu, 6 Feb 2014 20:02:31 +1000 Subject: [PATCH] Edit link on search Changes the search result to take you to the file instead of downloading --- app/models/dmsf_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dmsf_file.rb b/app/models/dmsf_file.rb index 898e4977..221bb126 100644 --- a/app/models/dmsf_file.rb +++ b/app/models/dmsf_file.rb @@ -61,7 +61,7 @@ class DmsfFile < ActiveRecord::Base acts_as_event :title => Proc.new {|o| "#{o.title} - #{o.name}"}, :description => Proc.new {|o| o.description }, - :url => Proc.new {|o| {:controller => 'dmsf_files', :action => 'show', :id => o, :download => ''}}, + :url => Proc.new {|o| {:controller => 'dmsf_files', :action => 'show', :id => o}}, :datetime => Proc.new {|o| o.updated_at }, :author => Proc.new {|o| o.last_revision.user }