Sha256: ae3155c42af6d1c289df239880ec70c93be921e0650c974ffa047b7a05ecb75f

Contents?: true

Size: 364 Bytes

Versions: 12

Compression:

Stored size: 364 Bytes

Contents

module Naf
  class LogParsersController < Naf::ApplicationController

    def logs
      response = params['logical_type'].constantize.new(params).logs
      if response.present?
        success = true
      else
        success = false
      end

      render json: "convertToJsonCallback(" + { success: success }.merge(response).to_json + ")"
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
naf-2.1.6 app/controllers/naf/log_parsers_controller.rb
naf-2.1.5 app/controllers/naf/log_parsers_controller.rb
naf-2.1.4 app/controllers/naf/log_parsers_controller.rb
naf-2.1.3 app/controllers/naf/log_parsers_controller.rb
naf-2.1.2 app/controllers/naf/log_parsers_controller.rb
naf-2.1.1 app/controllers/naf/log_parsers_controller.rb
naf-2.1.0 app/controllers/naf/log_parsers_controller.rb
naf-2.0.4 app/controllers/naf/log_parsers_controller.rb
naf-2.0.3 app/controllers/naf/log_parsers_controller.rb
naf-2.0.2 app/controllers/naf/log_parsers_controller.rb
naf-2.0.1 app/controllers/naf/log_parsers_controller.rb
naf-2.0.0 app/controllers/naf/log_parsers_controller.rb