Sha256: c8c9f37bc90549735453dfba3bfa118bbda7dce319935d0f7aa8067d2a35cf30
Contents?: true
Size: 737 Bytes
Versions: 3
Compression:
Stored size: 737 Bytes
Contents
module AtomicAdmin class AtomicLtiInstallController < ApplicationController def install_params params.permit(:iss, :client_id) end def find_install AtomicLti::Install.find_by(id: params[:id]) end def index render json: AtomicLti::Install.all.order(:id).paginate(page: params[:page], per_page: 30) end def create AtomicLti::Install.create!(install_params) end def show install = find_install render json: install end def update install = find_install result = install.update!(install_params) render json: result end def destroy install = find_install install.destroy render json: install end end end
Version data entries
3 entries across 3 versions & 1 rubygems