Sha256: f105adcf8c86e458ac754d418caf9f70dca5e78b1acfc2ff0ba88f1faff37e5a
Contents?: true
Size: 424 Bytes
Versions: 12
Compression:
Stored size: 424 Bytes
Contents
class SyntaxesController < ApplicationController before_filter :login_required def index @syntaxes = schema.ldap_syntaxes end def show key = params[:id].to_a.flatten.compact[0] raise ActiveRecord::RecordNotFound if key.nil? @syntax = schema.ldap_syntaxes.find do |syntax| syntax.name == key or syntax.id == key end raise ActiveRecord::RecordNotFound if @syntax.nil? end end
Version data entries
12 entries across 12 versions & 2 rubygems