Sha256: 15746af3915743a5137dee638cda2f74117b87492099f3d3acdc8dafdc39e539
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 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_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
4 entries across 4 versions & 1 rubygems