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

Version Path
activeldap-1.2.3 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap3-1.2.3 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.2.2 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.2.1 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.2.0 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.1.0 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-0.9.0 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-0.10.0 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.0.0 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.0.9 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.0.2 examples/al-admin/app/controllers/syntaxes_controller.rb
activeldap-1.0.1 examples/al-admin/app/controllers/syntaxes_controller.rb