ontology_version_member.rb revision 00e4f15826d75fbfc079bef3e559b7fa4c62e911
#
# 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