Sha256: 0bab5d8e539d1e504049c9e7771035a50563433910bc9c7bcae812543b8f9402
Contents?: true
Size: 1002 Bytes
Versions: 5
Compression:
Stored size: 1002 Bytes
Contents
class AuthSourceLdapsController < ApplicationController def index @auth_source_ldaps = AuthSourceLdap.all respond_to do |format| format.html { } format.json { render :json => @auth_source_ldaps } end end def show @auth_source_ldap = AuthSourceLdap.find(params[:id]) end def new @auth_source_ldap = AuthSourceLdap.new end def create @auth_source_ldap = AuthSourceLdap.new(params[:auth_source_ldap]) if @auth_source_ldap.save process_success else process_error end end def edit @auth_source_ldap = AuthSourceLdap.find(params[:id]) end def update @auth_source_ldap = AuthSourceLdap.find(params[:id]) if @auth_source_ldap.update_attributes(params[:auth_source_ldap]) process_success else process_error end end def destroy @auth_source_ldap = AuthSourceLdap.find(params[:id]) if @auth_source_ldap.destroy process_success else process_error end end end
Version data entries
5 entries across 5 versions & 1 rubygems