Cross Reference: ontologies_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
ontologies_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontologies_controller.rb revision c503ff8f66c1a2896938cec77ad3d59979bcdae8
#
# Controller for ontologies
#
class
OntologiesController
<
InheritedResources
::
Base
has_pagination
load_and_authorize_resource
:
except
=> [:
index
, :
show
]
respond_to
:
json
def
show
@
grouped_kinds
=
resource.entities.grouped
_by_kind
end
def
new
@
version
=
build_resource.versions.build
end
def
create
@
version
=
build_resource.versions.first
@
version.user
=
current_user
super
end
end