Cross Reference: base.rb
xref
: /
ontohub
/
app
/
controllers
/
api
/
v1
/
base.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
base.rb revision 82f1abf37f3f32db5927f385dda0d07b5013a4ea
# Base controller for all API controllers
class
Api
::
V1
::
Base
<
ApplicationController
respond_to
:
json
protected
def
check_write_permission
authorize
! :
write
,
resource
end
end