Edit link on search

Changes the search result to take you to the file instead of downloading
This commit is contained in:
William Schey 2014-02-06 20:02:31 +10:00
parent 86829597b6
commit 18f41d3533

View File

@ -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 }