Sha256: d9a25f1f710d3507f3e727c113c8b4c4849b7a23f64d06dbaf115f1c2ec2017c
Contents?: true
Size: 597 Bytes
Versions: 46
Compression:
Stored size: 597 Bytes
Contents
module Api class OrganizationsController < BaseController include OrganizationsControllerTemplate before_action :authorize_admin! def index render json: { organizations: Organization.accessible_as(current_user, :janitor) } end def show render json: @organization.to_resource_h end def create @organization.save! render json: @organization.to_resource_h end def update @organization.update! organization_params render json: @organization.to_resource_h end def authorization_slug '_/_' end end end
Version data entries
46 entries across 46 versions & 1 rubygems