ontologies_controller.rb revision ce7d1499be6f68b51252fb70a38c484515f8bd79
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano# Controller for ontologies
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcanoclass OntologiesController < InheritedResources::Base
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano load_and_authorize_resource :except => [:index, :show]
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano redirect_to ontology_entities_path(resource, :kind => resource.entities.groups_by_kind.first.kind)
d823d5b966f49d975a09a8512d084389d6d7ffc7dlezcano clazz = type=='DistributedOntology' ? DistributedOntology : SingleOntology