lib/taverna_player/concerns/models/output_port.rb
#------------------------------------------------------------------------------
# Copyright (c) 2013 The University of Manchester, UK.
#
# BSD Licenced. See LICENCE.rdoc for details.
#
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant agreement
# number 283359.
#
# Author: Robert Haines
#------------------------------------------------------------------------------
module TavernaPlayer
module Concerns
module Models
module Output
extend ActiveSupport::Concern
included do
belongs_to :run, :class_name => "TavernaPlayer::Run",
:inverse_of => :outputs
private
def file_url_via_run
"/runs/#{run_id}/output/#{name}"
end
end # included
end
end
end
end