Sha256: ff34c5fd5c45caa73c53910f28599ff811b8c7e5eae0f0204bf7bda1de548890

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

# Controller that can be configured in config/routes.rb to be used as NetzkeController, i.e. for processing endpoint calls. All it does is respond to any endpoint call with the same response.
class AlternativeController < ActionController::Base
  include Netzke::Railz::ControllerExtensions

  before_filter :do_static_endpoint_response, only: :direct

  def do_static_endpoint_response
    render text: direct_response(params, {netzke_feedback: ["Hit AlternativeController's before filter"]}).to_json
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.8.4 test/core_test_app/app/controllers/alternative_controller.rb
netzke-core-0.8.3 test/core_test_app/app/controllers/alternative_controller.rb
netzke-core-0.8.2 test/core_test_app/app/controllers/alternative_controller.rb