ontology_version_member.rb revision ee5342a8882c2fc7631fcffb5497e6597747887c
#
# Must be included in controllers that belong to an
# ontology version.
#
module OntologyVersionMember
protected
def ontology
@ontology ||= Ontology.find(params[:ontology_id])
end
def version
@version ||= ontology.versions.find_by_number!(params[:number])
end
def begin_of_association_chain
version
end
end