TrestleAdmin/trestle

View on GitHub
app/controllers/concerns/trestle/controller/dialog.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Trestle
  module Controller
    module Dialog
      extend ActiveSupport::Concern

      included do
        helper_method :dialog_request?
      end

    protected
      def dialog_request?
        request.headers["X-Trestle-Dialog"]
      end
    end
  end
end