Cross Reference: metadata_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
metadata_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
#
# Lists, adds and removes Metadatabe of its parent object
#
class
MetadataController
<
PolymorphicResource
::
Base
belongs_to
:
ontology
, :
polymorphic
=>
true
def
index
redirect_to
url_for
([
resource_chain.last
, :
projects
])
end
before_filter
:
check_read_permissions
protected
def
check_read_permissions
authorize
! :
show
,
parent.repository
end
end