Sha256: 11f1813e2a512bf939b0b41aabe6dbfede304b1ef62a8853ff73eb18061a4bca
Contents?: true
Size: 1.74 KB
Versions: 24
Compression:
Stored size: 1.74 KB
Contents
# typed: strict # frozen_string_literal: true module RubyLsp module Rails module Support module Callbacks MODELS = T.let( [ "before_validation", "after_validation", "before_save", "around_save", "after_save", "before_create", "around_create", "after_create", "after_commit", "after_create_commit", "after_update_commit", "after_destroy_commit", "after_save_commit", "after_rollback", "before_update", "around_update", "after_update", "before_destroy", "around_destroy", "after_destroy", "after_initialize", "after_find", "after_touch", ].freeze, T::Array[String], ) CONTROLLERS = T.let( [ "after_action", "append_after_action", "append_around_action", "append_before_action", "around_action", "before_action", "prepend_after_action", "prepend_around_action", "prepend_before_action", "skip_after_action", "skip_around_action", "skip_before_action", ].freeze, T::Array[String], ) JOBS = T.let( [ "after_enqueue", "after_perform", "around_enqueue", "around_perform", "before_enqueue", "before_perform", ].freeze, T::Array[String], ) ALL = T.let((MODELS + CONTROLLERS + JOBS).freeze, T::Array[String]) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems