Zooip/smooth_change

View on GitHub
sig/lib/smooth_change/action_controller/helper.rbs

Summary

Maintainability
Test Coverage
module SmoothChange
  module ActionController
    # Add helper methods to use SmoothChange in your Rails's ActionControllers
    module Helper
      extend ActiveSupport::Concern

      # Shoul be inclded from parent
      def request: () -> ActionDispatch::Request

      def store_smooth_change: () -> void

      def smooth_change: () -> ClientFeatureToggler

      private

      def http_header_value: () -> String
    end
  end
end