From 91cc1536bf775b325cd2da103ea3a211f8e4a57f Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 20:32:07 +0200 Subject: [PATCH 01/15] Add RBS/typeprof/RBS_rails gems --- Gemfile | 3 +++ Gemfile.lock | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/Gemfile b/Gemfile index ae3822554..1c9460642 100644 --- a/Gemfile +++ b/Gemfile @@ -98,4 +98,7 @@ group :development do gem 'listen', '~> 3.7' gem 'spring', '~> 4.0' gem 'web-console', '~> 4.2' + + gem 'rbs_rails', require: false + gem 'typeprof', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 44575cdac..aade9c585 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -275,6 +275,10 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) + rbs (3.1.3) + rbs_rails (0.12.0) + parser + rbs (>= 1) redis (4.8.0) regexp_parser (2.5.0) responders (3.0.1) @@ -355,6 +359,8 @@ GEM timeout (0.3.0) tins (1.31.1) sync + typeprof (0.21.7) + rbs (>= 1.8.1) tzinfo (2.0.5) concurrent-ruby (~> 1.0) tzinfo-data (1.2022.3) @@ -424,6 +430,7 @@ DEPENDENCIES rails (~> 7.0.0) rails-controller-testing (~> 1.0) rails-html-sanitizer (~> 1.4) + rbs_rails redis (~> 4.8) reverse_markdown (~> 2.1) rmagick (~> 5.0) @@ -442,6 +449,7 @@ DEPENDENCIES term-ansicolor (~> 1.7) terser (~> 1.1) thwait (~> 0.2) + typeprof tzinfo-data (~> 1.2022.3) web-console (~> 4.2) webdrivers (~> 5.2) From 3acf3466e2d95ecdd95882812e999a0b8cb35cba Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 20:41:05 +0200 Subject: [PATCH 02/15] Add generated rbs signatures for models --- sig/rbs_rails/app/models/ability.rbs | 462 +++++ sig/rbs_rails/app/models/ability_queue.rbs | 249 +++ .../app/models/active_storage/attachment.rbs | 251 +++ .../app/models/active_storage/blob.rbs | 378 ++++ .../models/active_storage/variant_record.rbs | 160 ++ sig/rbs_rails/app/models/answer.rbs | 1574 +++++++++++++++ sig/rbs_rails/app/models/article.rbs | 1574 +++++++++++++++ sig/rbs_rails/app/models/audit_log.rbs | 399 ++++ sig/rbs_rails/app/models/blocked_item.rbs | 315 +++ sig/rbs_rails/app/models/category.rbs | 810 ++++++++ .../app/models/category_filter_default.rbs | 186 ++ .../app/models/category_post_type.rbs | 216 +++ sig/rbs_rails/app/models/close_reason.rbs | 249 +++ sig/rbs_rails/app/models/comment.rbs | 501 +++++ sig/rbs_rails/app/models/comment_thread.rbs | 617 ++++++ sig/rbs_rails/app/models/community.rbs | 284 +++ sig/rbs_rails/app/models/community_user.rbs | 599 ++++++ sig/rbs_rails/app/models/error_log.rbs | 468 +++++ sig/rbs_rails/app/models/filter.rbs | 466 +++++ sig/rbs_rails/app/models/flag.rbs | 681 +++++++ .../app/models/habtm_before_tags.rbs | 110 ++ .../app/models/habtm_moderator_tags.rbs | 110 ++ sig/rbs_rails/app/models/habtm_posts.rbs | 110 ++ .../app/models/habtm_required_tags.rbs | 110 ++ sig/rbs_rails/app/models/habtm_tags.rbs | 110 ++ sig/rbs_rails/app/models/habtm_topic_tags.rbs | 110 ++ sig/rbs_rails/app/models/help_doc.rbs | 1574 +++++++++++++++ sig/rbs_rails/app/models/license.rbs | 360 ++++ sig/rbs_rails/app/models/micro_auth/app.rbs | 550 ++++++ sig/rbs_rails/app/models/micro_auth/token.rbs | 437 +++++ sig/rbs_rails/app/models/mod_warning.rbs | 396 ++++ sig/rbs_rails/app/models/notification.rbs | 324 ++++ sig/rbs_rails/app/models/pinned_link.rbs | 396 ++++ sig/rbs_rails/app/models/policy_doc.rbs | 1574 +++++++++++++++ sig/rbs_rails/app/models/post.rbs | 1593 ++++++++++++++++ sig/rbs_rails/app/models/post_flag_type.rbs | 402 ++++ sig/rbs_rails/app/models/post_history.rbs | 632 ++++++ sig/rbs_rails/app/models/post_history_tag.rbs | 252 +++ .../app/models/post_history_type.rbs | 208 ++ sig/rbs_rails/app/models/post_type.rbs | 654 +++++++ sig/rbs_rails/app/models/posts_tag.rbs | 108 ++ sig/rbs_rails/app/models/question.rbs | 1580 +++++++++++++++ sig/rbs_rails/app/models/reaction.rbs | 300 +++ sig/rbs_rails/app/models/reaction_type.rbs | 507 +++++ sig/rbs_rails/app/models/site_setting.rbs | 363 ++++ sig/rbs_rails/app/models/sso_profile.rbs | 138 ++ sig/rbs_rails/app/models/subscription.rbs | 432 +++++ sig/rbs_rails/app/models/suggested_edit.rbs | 780 ++++++++ sig/rbs_rails/app/models/tag.rbs | 418 ++++ sig/rbs_rails/app/models/tag_set.rbs | 222 +++ sig/rbs_rails/app/models/tag_synonym.rbs | 216 +++ sig/rbs_rails/app/models/thread_follower.rbs | 258 +++ sig/rbs_rails/app/models/user.rbs | 1686 +++++++++++++++++ sig/rbs_rails/app/models/user_ability.rbs | 324 ++++ sig/rbs_rails/app/models/vote.rbs | 336 ++++ sig/rbs_rails/app/models/warning_template.rbs | 282 +++ sig/rbs_rails/model_dependencies.rbs | 76 + sig/rbs_rails/path_helpers.rbs | 596 ++++++ 58 files changed, 29073 insertions(+) create mode 100644 sig/rbs_rails/app/models/ability.rbs create mode 100644 sig/rbs_rails/app/models/ability_queue.rbs create mode 100644 sig/rbs_rails/app/models/active_storage/attachment.rbs create mode 100644 sig/rbs_rails/app/models/active_storage/blob.rbs create mode 100644 sig/rbs_rails/app/models/active_storage/variant_record.rbs create mode 100644 sig/rbs_rails/app/models/answer.rbs create mode 100644 sig/rbs_rails/app/models/article.rbs create mode 100644 sig/rbs_rails/app/models/audit_log.rbs create mode 100644 sig/rbs_rails/app/models/blocked_item.rbs create mode 100644 sig/rbs_rails/app/models/category.rbs create mode 100644 sig/rbs_rails/app/models/category_filter_default.rbs create mode 100644 sig/rbs_rails/app/models/category_post_type.rbs create mode 100644 sig/rbs_rails/app/models/close_reason.rbs create mode 100644 sig/rbs_rails/app/models/comment.rbs create mode 100644 sig/rbs_rails/app/models/comment_thread.rbs create mode 100644 sig/rbs_rails/app/models/community.rbs create mode 100644 sig/rbs_rails/app/models/community_user.rbs create mode 100644 sig/rbs_rails/app/models/error_log.rbs create mode 100644 sig/rbs_rails/app/models/filter.rbs create mode 100644 sig/rbs_rails/app/models/flag.rbs create mode 100644 sig/rbs_rails/app/models/habtm_before_tags.rbs create mode 100644 sig/rbs_rails/app/models/habtm_moderator_tags.rbs create mode 100644 sig/rbs_rails/app/models/habtm_posts.rbs create mode 100644 sig/rbs_rails/app/models/habtm_required_tags.rbs create mode 100644 sig/rbs_rails/app/models/habtm_tags.rbs create mode 100644 sig/rbs_rails/app/models/habtm_topic_tags.rbs create mode 100644 sig/rbs_rails/app/models/help_doc.rbs create mode 100644 sig/rbs_rails/app/models/license.rbs create mode 100644 sig/rbs_rails/app/models/micro_auth/app.rbs create mode 100644 sig/rbs_rails/app/models/micro_auth/token.rbs create mode 100644 sig/rbs_rails/app/models/mod_warning.rbs create mode 100644 sig/rbs_rails/app/models/notification.rbs create mode 100644 sig/rbs_rails/app/models/pinned_link.rbs create mode 100644 sig/rbs_rails/app/models/policy_doc.rbs create mode 100644 sig/rbs_rails/app/models/post.rbs create mode 100644 sig/rbs_rails/app/models/post_flag_type.rbs create mode 100644 sig/rbs_rails/app/models/post_history.rbs create mode 100644 sig/rbs_rails/app/models/post_history_tag.rbs create mode 100644 sig/rbs_rails/app/models/post_history_type.rbs create mode 100644 sig/rbs_rails/app/models/post_type.rbs create mode 100644 sig/rbs_rails/app/models/posts_tag.rbs create mode 100644 sig/rbs_rails/app/models/question.rbs create mode 100644 sig/rbs_rails/app/models/reaction.rbs create mode 100644 sig/rbs_rails/app/models/reaction_type.rbs create mode 100644 sig/rbs_rails/app/models/site_setting.rbs create mode 100644 sig/rbs_rails/app/models/sso_profile.rbs create mode 100644 sig/rbs_rails/app/models/subscription.rbs create mode 100644 sig/rbs_rails/app/models/suggested_edit.rbs create mode 100644 sig/rbs_rails/app/models/tag.rbs create mode 100644 sig/rbs_rails/app/models/tag_set.rbs create mode 100644 sig/rbs_rails/app/models/tag_synonym.rbs create mode 100644 sig/rbs_rails/app/models/thread_follower.rbs create mode 100644 sig/rbs_rails/app/models/user.rbs create mode 100644 sig/rbs_rails/app/models/user_ability.rbs create mode 100644 sig/rbs_rails/app/models/vote.rbs create mode 100644 sig/rbs_rails/app/models/warning_template.rbs create mode 100644 sig/rbs_rails/model_dependencies.rbs create mode 100644 sig/rbs_rails/path_helpers.rbs diff --git a/sig/rbs_rails/app/models/ability.rbs b/sig/rbs_rails/app/models/ability.rbs new file mode 100644 index 000000000..aefc695df --- /dev/null +++ b/sig/rbs_rails/app/models/ability.rbs @@ -0,0 +1,462 @@ +class Ability < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Ability, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def internal_id: () -> String? + + def internal_id=: (String?) -> String? + + def internal_id?: () -> bool + + def internal_id_changed?: () -> bool + + def internal_id_change: () -> [ String?, String? ] + + def internal_id_will_change!: () -> void + + def internal_id_was: () -> String? + + def internal_id_previously_changed?: () -> bool + + def internal_id_previous_change: () -> Array[String?]? + + def internal_id_previously_was: () -> String? + + def internal_id_before_last_save: () -> String? + + def internal_id_change_to_be_saved: () -> Array[String?]? + + def internal_id_in_database: () -> String? + + def saved_change_to_internal_id: () -> Array[String?]? + + def saved_change_to_internal_id?: () -> bool + + def will_save_change_to_internal_id?: () -> bool + + def restore_internal_id!: () -> void + + def clear_internal_id_change: () -> void + + def icon: () -> String? + + def icon=: (String?) -> String? + + def icon?: () -> bool + + def icon_changed?: () -> bool + + def icon_change: () -> [ String?, String? ] + + def icon_will_change!: () -> void + + def icon_was: () -> String? + + def icon_previously_changed?: () -> bool + + def icon_previous_change: () -> Array[String?]? + + def icon_previously_was: () -> String? + + def icon_before_last_save: () -> String? + + def icon_change_to_be_saved: () -> Array[String?]? + + def icon_in_database: () -> String? + + def saved_change_to_icon: () -> Array[String?]? + + def saved_change_to_icon?: () -> bool + + def will_save_change_to_icon?: () -> bool + + def restore_icon!: () -> void + + def clear_icon_change: () -> void + + def post_score_threshold: () -> BigDecimal? + + def post_score_threshold=: (BigDecimal?) -> BigDecimal? + + def post_score_threshold?: () -> bool + + def post_score_threshold_changed?: () -> bool + + def post_score_threshold_change: () -> [ BigDecimal?, BigDecimal? ] + + def post_score_threshold_will_change!: () -> void + + def post_score_threshold_was: () -> BigDecimal? + + def post_score_threshold_previously_changed?: () -> bool + + def post_score_threshold_previous_change: () -> Array[BigDecimal?]? + + def post_score_threshold_previously_was: () -> BigDecimal? + + def post_score_threshold_before_last_save: () -> BigDecimal? + + def post_score_threshold_change_to_be_saved: () -> Array[BigDecimal?]? + + def post_score_threshold_in_database: () -> BigDecimal? + + def saved_change_to_post_score_threshold: () -> Array[BigDecimal?]? + + def saved_change_to_post_score_threshold?: () -> bool + + def will_save_change_to_post_score_threshold?: () -> bool + + def restore_post_score_threshold!: () -> void + + def clear_post_score_threshold_change: () -> void + + def edit_score_threshold: () -> BigDecimal? + + def edit_score_threshold=: (BigDecimal?) -> BigDecimal? + + def edit_score_threshold?: () -> bool + + def edit_score_threshold_changed?: () -> bool + + def edit_score_threshold_change: () -> [ BigDecimal?, BigDecimal? ] + + def edit_score_threshold_will_change!: () -> void + + def edit_score_threshold_was: () -> BigDecimal? + + def edit_score_threshold_previously_changed?: () -> bool + + def edit_score_threshold_previous_change: () -> Array[BigDecimal?]? + + def edit_score_threshold_previously_was: () -> BigDecimal? + + def edit_score_threshold_before_last_save: () -> BigDecimal? + + def edit_score_threshold_change_to_be_saved: () -> Array[BigDecimal?]? + + def edit_score_threshold_in_database: () -> BigDecimal? + + def saved_change_to_edit_score_threshold: () -> Array[BigDecimal?]? + + def saved_change_to_edit_score_threshold?: () -> bool + + def will_save_change_to_edit_score_threshold?: () -> bool + + def restore_edit_score_threshold!: () -> void + + def clear_edit_score_threshold_change: () -> void + + def flag_score_threshold: () -> BigDecimal? + + def flag_score_threshold=: (BigDecimal?) -> BigDecimal? + + def flag_score_threshold?: () -> bool + + def flag_score_threshold_changed?: () -> bool + + def flag_score_threshold_change: () -> [ BigDecimal?, BigDecimal? ] + + def flag_score_threshold_will_change!: () -> void + + def flag_score_threshold_was: () -> BigDecimal? + + def flag_score_threshold_previously_changed?: () -> bool + + def flag_score_threshold_previous_change: () -> Array[BigDecimal?]? + + def flag_score_threshold_previously_was: () -> BigDecimal? + + def flag_score_threshold_before_last_save: () -> BigDecimal? + + def flag_score_threshold_change_to_be_saved: () -> Array[BigDecimal?]? + + def flag_score_threshold_in_database: () -> BigDecimal? + + def saved_change_to_flag_score_threshold: () -> Array[BigDecimal?]? + + def saved_change_to_flag_score_threshold?: () -> bool + + def will_save_change_to_flag_score_threshold?: () -> bool + + def restore_flag_score_threshold!: () -> void + + def clear_flag_score_threshold_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def summary: () -> String? + + def summary=: (String?) -> String? + + def summary?: () -> bool + + def summary_changed?: () -> bool + + def summary_change: () -> [ String?, String? ] + + def summary_will_change!: () -> void + + def summary_was: () -> String? + + def summary_previously_changed?: () -> bool + + def summary_previous_change: () -> Array[String?]? + + def summary_previously_was: () -> String? + + def summary_before_last_save: () -> String? + + def summary_change_to_be_saved: () -> Array[String?]? + + def summary_in_database: () -> String? + + def saved_change_to_summary: () -> Array[String?]? + + def saved_change_to_summary?: () -> bool + + def will_save_change_to_summary?: () -> bool + + def restore_summary!: () -> void + + def clear_summary_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Ability, Integer] + include Enumerable[Ability] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Ability, Integer] + end +end diff --git a/sig/rbs_rails/app/models/ability_queue.rbs b/sig/rbs_rails/app/models/ability_queue.rbs new file mode 100644 index 000000000..b5895490f --- /dev/null +++ b/sig/rbs_rails/app/models/ability_queue.rbs @@ -0,0 +1,249 @@ +class AbilityQueue < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[AbilityQueue, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_user_id: () -> Integer? + + def community_user_id=: (Integer?) -> Integer? + + def community_user_id?: () -> bool + + def community_user_id_changed?: () -> bool + + def community_user_id_change: () -> [ Integer?, Integer? ] + + def community_user_id_will_change!: () -> void + + def community_user_id_was: () -> Integer? + + def community_user_id_previously_changed?: () -> bool + + def community_user_id_previous_change: () -> Array[Integer?]? + + def community_user_id_previously_was: () -> Integer? + + def community_user_id_before_last_save: () -> Integer? + + def community_user_id_change_to_be_saved: () -> Array[Integer?]? + + def community_user_id_in_database: () -> Integer? + + def saved_change_to_community_user_id: () -> Array[Integer?]? + + def saved_change_to_community_user_id?: () -> bool + + def will_save_change_to_community_user_id?: () -> bool + + def restore_community_user_id!: () -> void + + def clear_community_user_id_change: () -> void + + def comment: () -> String? + + def comment=: (String?) -> String? + + def comment?: () -> bool + + def comment_changed?: () -> bool + + def comment_change: () -> [ String?, String? ] + + def comment_will_change!: () -> void + + def comment_was: () -> String? + + def comment_previously_changed?: () -> bool + + def comment_previous_change: () -> Array[String?]? + + def comment_previously_was: () -> String? + + def comment_before_last_save: () -> String? + + def comment_change_to_be_saved: () -> Array[String?]? + + def comment_in_database: () -> String? + + def saved_change_to_comment: () -> Array[String?]? + + def saved_change_to_comment?: () -> bool + + def will_save_change_to_comment?: () -> bool + + def restore_comment!: () -> void + + def clear_comment_change: () -> void + + def completed: () -> bool? + + def completed=: (bool?) -> bool? + + def completed?: () -> bool + + def completed_changed?: () -> bool + + def completed_change: () -> [ bool?, bool? ] + + def completed_will_change!: () -> void + + def completed_was: () -> bool? + + def completed_previously_changed?: () -> bool + + def completed_previous_change: () -> Array[bool?]? + + def completed_previously_was: () -> bool? + + def completed_before_last_save: () -> bool? + + def completed_change_to_be_saved: () -> Array[bool?]? + + def completed_in_database: () -> bool? + + def saved_change_to_completed: () -> Array[bool?]? + + def saved_change_to_completed?: () -> bool + + def will_save_change_to_completed?: () -> bool + + def restore_completed!: () -> void + + def clear_completed_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def community_user: () -> CommunityUser + def community_user=: (CommunityUser?) -> CommunityUser? + def reload_community_user: () -> CommunityUser? + def build_community_user: (untyped) -> CommunityUser + def create_community_user: (untyped) -> CommunityUser + def create_community_user!: (untyped) -> CommunityUser + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.pending: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def pending: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[AbilityQueue, Integer] + include Enumerable[AbilityQueue] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[AbilityQueue, Integer] + end +end diff --git a/sig/rbs_rails/app/models/active_storage/attachment.rbs b/sig/rbs_rails/app/models/active_storage/attachment.rbs new file mode 100644 index 000000000..b66f628b8 --- /dev/null +++ b/sig/rbs_rails/app/models/active_storage/attachment.rbs @@ -0,0 +1,251 @@ +module ActiveStorage + class Attachment < ::ActiveStorage::Record + extend _ActiveRecord_Relation_ClassMethods[ActiveStorage::Attachment, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String + + def name=: (String) -> String + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def record_type: () -> String + + def record_type=: (String) -> String + + def record_type?: () -> bool + + def record_type_changed?: () -> bool + + def record_type_change: () -> [ String?, String? ] + + def record_type_will_change!: () -> void + + def record_type_was: () -> String? + + def record_type_previously_changed?: () -> bool + + def record_type_previous_change: () -> Array[String?]? + + def record_type_previously_was: () -> String? + + def record_type_before_last_save: () -> String? + + def record_type_change_to_be_saved: () -> Array[String?]? + + def record_type_in_database: () -> String? + + def saved_change_to_record_type: () -> Array[String?]? + + def saved_change_to_record_type?: () -> bool + + def will_save_change_to_record_type?: () -> bool + + def restore_record_type!: () -> void + + def clear_record_type_change: () -> void + + def record_id: () -> Integer + + def record_id=: (Integer) -> Integer + + def record_id?: () -> bool + + def record_id_changed?: () -> bool + + def record_id_change: () -> [ Integer?, Integer? ] + + def record_id_will_change!: () -> void + + def record_id_was: () -> Integer? + + def record_id_previously_changed?: () -> bool + + def record_id_previous_change: () -> Array[Integer?]? + + def record_id_previously_was: () -> Integer? + + def record_id_before_last_save: () -> Integer? + + def record_id_change_to_be_saved: () -> Array[Integer?]? + + def record_id_in_database: () -> Integer? + + def saved_change_to_record_id: () -> Array[Integer?]? + + def saved_change_to_record_id?: () -> bool + + def will_save_change_to_record_id?: () -> bool + + def restore_record_id!: () -> void + + def clear_record_id_change: () -> void + + def blob_id: () -> Integer + + def blob_id=: (Integer) -> Integer + + def blob_id?: () -> bool + + def blob_id_changed?: () -> bool + + def blob_id_change: () -> [ Integer?, Integer? ] + + def blob_id_will_change!: () -> void + + def blob_id_was: () -> Integer? + + def blob_id_previously_changed?: () -> bool + + def blob_id_previous_change: () -> Array[Integer?]? + + def blob_id_previously_was: () -> Integer? + + def blob_id_before_last_save: () -> Integer? + + def blob_id_change_to_be_saved: () -> Array[Integer?]? + + def blob_id_in_database: () -> Integer? + + def saved_change_to_blob_id: () -> Array[Integer?]? + + def saved_change_to_blob_id?: () -> bool + + def will_save_change_to_blob_id?: () -> bool + + def restore_blob_id!: () -> void + + def clear_blob_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + end + include GeneratedAttributeMethods + + def record: () -> untyped + def record=: (untyped?) -> untyped? + def reload_record: () -> untyped? + def blob: () -> ActiveStorage::Blob + def blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob? + def reload_blob: () -> ActiveStorage::Blob? + def build_blob: (untyped) -> ActiveStorage::Blob + def create_blob: (untyped) -> ActiveStorage::Blob + def create_blob!: (untyped) -> ActiveStorage::Blob + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::Attachment, Integer] + include Enumerable[ActiveStorage::Attachment] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::Attachment, Integer] + end + end +end diff --git a/sig/rbs_rails/app/models/active_storage/blob.rbs b/sig/rbs_rails/app/models/active_storage/blob.rbs new file mode 100644 index 000000000..1abc9ebf7 --- /dev/null +++ b/sig/rbs_rails/app/models/active_storage/blob.rbs @@ -0,0 +1,378 @@ +module ActiveStorage + class Blob < ::ActiveStorage::Record + extend _ActiveRecord_Relation_ClassMethods[ActiveStorage::Blob, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def key: () -> String + + def key=: (String) -> String + + def key?: () -> bool + + def key_changed?: () -> bool + + def key_change: () -> [ String?, String? ] + + def key_will_change!: () -> void + + def key_was: () -> String? + + def key_previously_changed?: () -> bool + + def key_previous_change: () -> Array[String?]? + + def key_previously_was: () -> String? + + def key_before_last_save: () -> String? + + def key_change_to_be_saved: () -> Array[String?]? + + def key_in_database: () -> String? + + def saved_change_to_key: () -> Array[String?]? + + def saved_change_to_key?: () -> bool + + def will_save_change_to_key?: () -> bool + + def restore_key!: () -> void + + def clear_key_change: () -> void + + def filename: () -> String + + def filename=: (String) -> String + + def filename?: () -> bool + + def filename_changed?: () -> bool + + def filename_change: () -> [ String?, String? ] + + def filename_will_change!: () -> void + + def filename_was: () -> String? + + def filename_previously_changed?: () -> bool + + def filename_previous_change: () -> Array[String?]? + + def filename_previously_was: () -> String? + + def filename_before_last_save: () -> String? + + def filename_change_to_be_saved: () -> Array[String?]? + + def filename_in_database: () -> String? + + def saved_change_to_filename: () -> Array[String?]? + + def saved_change_to_filename?: () -> bool + + def will_save_change_to_filename?: () -> bool + + def restore_filename!: () -> void + + def clear_filename_change: () -> void + + def content_type: () -> String? + + def content_type=: (String?) -> String? + + def content_type?: () -> bool + + def content_type_changed?: () -> bool + + def content_type_change: () -> [ String?, String? ] + + def content_type_will_change!: () -> void + + def content_type_was: () -> String? + + def content_type_previously_changed?: () -> bool + + def content_type_previous_change: () -> Array[String?]? + + def content_type_previously_was: () -> String? + + def content_type_before_last_save: () -> String? + + def content_type_change_to_be_saved: () -> Array[String?]? + + def content_type_in_database: () -> String? + + def saved_change_to_content_type: () -> Array[String?]? + + def saved_change_to_content_type?: () -> bool + + def will_save_change_to_content_type?: () -> bool + + def restore_content_type!: () -> void + + def clear_content_type_change: () -> void + + def metadata: () -> String? + + def metadata=: (String?) -> String? + + def metadata?: () -> bool + + def metadata_changed?: () -> bool + + def metadata_change: () -> [ String?, String? ] + + def metadata_will_change!: () -> void + + def metadata_was: () -> String? + + def metadata_previously_changed?: () -> bool + + def metadata_previous_change: () -> Array[String?]? + + def metadata_previously_was: () -> String? + + def metadata_before_last_save: () -> String? + + def metadata_change_to_be_saved: () -> Array[String?]? + + def metadata_in_database: () -> String? + + def saved_change_to_metadata: () -> Array[String?]? + + def saved_change_to_metadata?: () -> bool + + def will_save_change_to_metadata?: () -> bool + + def restore_metadata!: () -> void + + def clear_metadata_change: () -> void + + def byte_size: () -> Integer + + def byte_size=: (Integer) -> Integer + + def byte_size?: () -> bool + + def byte_size_changed?: () -> bool + + def byte_size_change: () -> [ Integer?, Integer? ] + + def byte_size_will_change!: () -> void + + def byte_size_was: () -> Integer? + + def byte_size_previously_changed?: () -> bool + + def byte_size_previous_change: () -> Array[Integer?]? + + def byte_size_previously_was: () -> Integer? + + def byte_size_before_last_save: () -> Integer? + + def byte_size_change_to_be_saved: () -> Array[Integer?]? + + def byte_size_in_database: () -> Integer? + + def saved_change_to_byte_size: () -> Array[Integer?]? + + def saved_change_to_byte_size?: () -> bool + + def will_save_change_to_byte_size?: () -> bool + + def restore_byte_size!: () -> void + + def clear_byte_size_change: () -> void + + def checksum: () -> String? + + def checksum=: (String?) -> String? + + def checksum?: () -> bool + + def checksum_changed?: () -> bool + + def checksum_change: () -> [ String?, String? ] + + def checksum_will_change!: () -> void + + def checksum_was: () -> String? + + def checksum_previously_changed?: () -> bool + + def checksum_previous_change: () -> Array[String?]? + + def checksum_previously_was: () -> String? + + def checksum_before_last_save: () -> String? + + def checksum_change_to_be_saved: () -> Array[String?]? + + def checksum_in_database: () -> String? + + def saved_change_to_checksum: () -> Array[String?]? + + def saved_change_to_checksum?: () -> bool + + def will_save_change_to_checksum?: () -> bool + + def restore_checksum!: () -> void + + def clear_checksum_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def service_name: () -> String? + + def service_name=: (String?) -> String? + + def service_name?: () -> bool + + def service_name_changed?: () -> bool + + def service_name_change: () -> [ String?, String? ] + + def service_name_will_change!: () -> void + + def service_name_was: () -> String? + + def service_name_previously_changed?: () -> bool + + def service_name_previous_change: () -> Array[String?]? + + def service_name_previously_was: () -> String? + + def service_name_before_last_save: () -> String? + + def service_name_change_to_be_saved: () -> Array[String?]? + + def service_name_in_database: () -> String? + + def saved_change_to_service_name: () -> Array[String?]? + + def saved_change_to_service_name?: () -> bool + + def will_save_change_to_service_name?: () -> bool + + def restore_service_name!: () -> void + + def clear_service_name_change: () -> void + end + include GeneratedAttributeMethods + def variant_records: () -> ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy + def variant_records=: (ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy | Array[ActiveStorage::VariantRecord]) -> (ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy | Array[ActiveStorage::VariantRecord]) + def variant_record_ids: () -> Array[Integer] + def variant_record_ids=: (Array[Integer]) -> Array[Integer] + def attachments: () -> ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy + def attachments=: (ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy | Array[ActiveStorage::Attachment]) -> (ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy | Array[ActiveStorage::Attachment]) + def attachment_ids: () -> Array[Integer] + def attachment_ids=: (Array[Integer]) -> Array[Integer] + def preview_image_attachment: () -> ActiveStorage::Attachment? + def preview_image_attachment=: (ActiveStorage::Attachment?) -> ActiveStorage::Attachment? + def build_preview_image_attachment: (untyped) -> ActiveStorage::Attachment + def create_preview_image_attachment: (untyped) -> ActiveStorage::Attachment + def create_preview_image_attachment!: (untyped) -> ActiveStorage::Attachment + def reload_preview_image_attachment: () -> ActiveStorage::Attachment? + def preview_image_blob: () -> ActiveStorage::Blob? + def preview_image_blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob? + def build_preview_image_blob: (untyped) -> ActiveStorage::Blob + def create_preview_image_blob: (untyped) -> ActiveStorage::Blob + def create_preview_image_blob!: (untyped) -> ActiveStorage::Blob + def reload_preview_image_blob: () -> ActiveStorage::Blob? + + module GeneratedAssociationMethods + def preview_image: () -> ActiveStorage::Attached::One + + def preview_image=: (ActionDispatch::Http::UploadedFile) -> ActionDispatch::Http::UploadedFile + | (Rack::Test::UploadedFile) -> Rack::Test::UploadedFile + | (ActiveStorage::Blob) -> ActiveStorage::Blob + | (String) -> String + | ({ io: IO, filename: String, content_type: String? }) -> { io: IO, filename: String, content_type: String? } + | (nil) -> nil + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::Blob, Integer] + include Enumerable[ActiveStorage::Blob] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::Blob, Integer] + end + end +end diff --git a/sig/rbs_rails/app/models/active_storage/variant_record.rbs b/sig/rbs_rails/app/models/active_storage/variant_record.rbs new file mode 100644 index 000000000..d7e9dd367 --- /dev/null +++ b/sig/rbs_rails/app/models/active_storage/variant_record.rbs @@ -0,0 +1,160 @@ +module ActiveStorage + class VariantRecord < ::ActiveStorage::Record + extend _ActiveRecord_Relation_ClassMethods[ActiveStorage::VariantRecord, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def blob_id: () -> Integer + + def blob_id=: (Integer) -> Integer + + def blob_id?: () -> bool + + def blob_id_changed?: () -> bool + + def blob_id_change: () -> [ Integer?, Integer? ] + + def blob_id_will_change!: () -> void + + def blob_id_was: () -> Integer? + + def blob_id_previously_changed?: () -> bool + + def blob_id_previous_change: () -> Array[Integer?]? + + def blob_id_previously_was: () -> Integer? + + def blob_id_before_last_save: () -> Integer? + + def blob_id_change_to_be_saved: () -> Array[Integer?]? + + def blob_id_in_database: () -> Integer? + + def saved_change_to_blob_id: () -> Array[Integer?]? + + def saved_change_to_blob_id?: () -> bool + + def will_save_change_to_blob_id?: () -> bool + + def restore_blob_id!: () -> void + + def clear_blob_id_change: () -> void + + def variation_digest: () -> String + + def variation_digest=: (String) -> String + + def variation_digest?: () -> bool + + def variation_digest_changed?: () -> bool + + def variation_digest_change: () -> [ String?, String? ] + + def variation_digest_will_change!: () -> void + + def variation_digest_was: () -> String? + + def variation_digest_previously_changed?: () -> bool + + def variation_digest_previous_change: () -> Array[String?]? + + def variation_digest_previously_was: () -> String? + + def variation_digest_before_last_save: () -> String? + + def variation_digest_change_to_be_saved: () -> Array[String?]? + + def variation_digest_in_database: () -> String? + + def saved_change_to_variation_digest: () -> Array[String?]? + + def saved_change_to_variation_digest?: () -> bool + + def will_save_change_to_variation_digest?: () -> bool + + def restore_variation_digest!: () -> void + + def clear_variation_digest_change: () -> void + end + include GeneratedAttributeMethods + + def image_attachment: () -> ActiveStorage::Attachment? + def image_attachment=: (ActiveStorage::Attachment?) -> ActiveStorage::Attachment? + def build_image_attachment: (untyped) -> ActiveStorage::Attachment + def create_image_attachment: (untyped) -> ActiveStorage::Attachment + def create_image_attachment!: (untyped) -> ActiveStorage::Attachment + def reload_image_attachment: () -> ActiveStorage::Attachment? + def image_blob: () -> ActiveStorage::Blob? + def image_blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob? + def build_image_blob: (untyped) -> ActiveStorage::Blob + def create_image_blob: (untyped) -> ActiveStorage::Blob + def create_image_blob!: (untyped) -> ActiveStorage::Blob + def reload_image_blob: () -> ActiveStorage::Blob? + def blob: () -> ActiveStorage::Blob + def blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob? + def reload_blob: () -> ActiveStorage::Blob? + def build_blob: (untyped) -> ActiveStorage::Blob + def create_blob: (untyped) -> ActiveStorage::Blob + def create_blob!: (untyped) -> ActiveStorage::Blob + module GeneratedAssociationMethods + def image: () -> ActiveStorage::Attached::One + + def image=: (ActionDispatch::Http::UploadedFile) -> ActionDispatch::Http::UploadedFile + | (Rack::Test::UploadedFile) -> Rack::Test::UploadedFile + | (ActiveStorage::Blob) -> ActiveStorage::Blob + | (String) -> String + | ({ io: IO, filename: String, content_type: String? }) -> { io: IO, filename: String, content_type: String? } + | (nil) -> nil + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::VariantRecord, Integer] + include Enumerable[ActiveStorage::VariantRecord] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ActiveStorage::VariantRecord, Integer] + end + end +end diff --git a/sig/rbs_rails/app/models/answer.rbs b/sig/rbs_rails/app/models/answer.rbs new file mode 100644 index 000000000..bc9383239 --- /dev/null +++ b/sig/rbs_rails/app/models/answer.rbs @@ -0,0 +1,1574 @@ +class Answer < ::Post + extend _ActiveRecord_Relation_ClassMethods[Answer, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Answer, Integer] + include Enumerable[Answer] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Answer, Integer] + end +end diff --git a/sig/rbs_rails/app/models/article.rbs b/sig/rbs_rails/app/models/article.rbs new file mode 100644 index 000000000..3eb1223e7 --- /dev/null +++ b/sig/rbs_rails/app/models/article.rbs @@ -0,0 +1,1574 @@ +class Article < ::Post + extend _ActiveRecord_Relation_ClassMethods[Article, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Article, Integer] + include Enumerable[Article] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Article, Integer] + end +end diff --git a/sig/rbs_rails/app/models/audit_log.rbs b/sig/rbs_rails/app/models/audit_log.rbs new file mode 100644 index 000000000..7ea5975dc --- /dev/null +++ b/sig/rbs_rails/app/models/audit_log.rbs @@ -0,0 +1,399 @@ +class AuditLog < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[AuditLog, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def log_type: () -> String? + + def log_type=: (String?) -> String? + + def log_type?: () -> bool + + def log_type_changed?: () -> bool + + def log_type_change: () -> [ String?, String? ] + + def log_type_will_change!: () -> void + + def log_type_was: () -> String? + + def log_type_previously_changed?: () -> bool + + def log_type_previous_change: () -> Array[String?]? + + def log_type_previously_was: () -> String? + + def log_type_before_last_save: () -> String? + + def log_type_change_to_be_saved: () -> Array[String?]? + + def log_type_in_database: () -> String? + + def saved_change_to_log_type: () -> Array[String?]? + + def saved_change_to_log_type?: () -> bool + + def will_save_change_to_log_type?: () -> bool + + def restore_log_type!: () -> void + + def clear_log_type_change: () -> void + + def event_type: () -> String? + + def event_type=: (String?) -> String? + + def event_type?: () -> bool + + def event_type_changed?: () -> bool + + def event_type_change: () -> [ String?, String? ] + + def event_type_will_change!: () -> void + + def event_type_was: () -> String? + + def event_type_previously_changed?: () -> bool + + def event_type_previous_change: () -> Array[String?]? + + def event_type_previously_was: () -> String? + + def event_type_before_last_save: () -> String? + + def event_type_change_to_be_saved: () -> Array[String?]? + + def event_type_in_database: () -> String? + + def saved_change_to_event_type: () -> Array[String?]? + + def saved_change_to_event_type?: () -> bool + + def will_save_change_to_event_type?: () -> bool + + def restore_event_type!: () -> void + + def clear_event_type_change: () -> void + + def related_type: () -> String? + + def related_type=: (String?) -> String? + + def related_type?: () -> bool + + def related_type_changed?: () -> bool + + def related_type_change: () -> [ String?, String? ] + + def related_type_will_change!: () -> void + + def related_type_was: () -> String? + + def related_type_previously_changed?: () -> bool + + def related_type_previous_change: () -> Array[String?]? + + def related_type_previously_was: () -> String? + + def related_type_before_last_save: () -> String? + + def related_type_change_to_be_saved: () -> Array[String?]? + + def related_type_in_database: () -> String? + + def saved_change_to_related_type: () -> Array[String?]? + + def saved_change_to_related_type?: () -> bool + + def will_save_change_to_related_type?: () -> bool + + def restore_related_type!: () -> void + + def clear_related_type_change: () -> void + + def related_id: () -> Integer? + + def related_id=: (Integer?) -> Integer? + + def related_id?: () -> bool + + def related_id_changed?: () -> bool + + def related_id_change: () -> [ Integer?, Integer? ] + + def related_id_will_change!: () -> void + + def related_id_was: () -> Integer? + + def related_id_previously_changed?: () -> bool + + def related_id_previous_change: () -> Array[Integer?]? + + def related_id_previously_was: () -> Integer? + + def related_id_before_last_save: () -> Integer? + + def related_id_change_to_be_saved: () -> Array[Integer?]? + + def related_id_in_database: () -> Integer? + + def saved_change_to_related_id: () -> Array[Integer?]? + + def saved_change_to_related_id?: () -> bool + + def will_save_change_to_related_id?: () -> bool + + def restore_related_id!: () -> void + + def clear_related_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def comment: () -> String? + + def comment=: (String?) -> String? + + def comment?: () -> bool + + def comment_changed?: () -> bool + + def comment_change: () -> [ String?, String? ] + + def comment_will_change!: () -> void + + def comment_was: () -> String? + + def comment_previously_changed?: () -> bool + + def comment_previous_change: () -> Array[String?]? + + def comment_previously_was: () -> String? + + def comment_before_last_save: () -> String? + + def comment_change_to_be_saved: () -> Array[String?]? + + def comment_in_database: () -> String? + + def saved_change_to_comment: () -> Array[String?]? + + def saved_change_to_comment?: () -> bool + + def will_save_change_to_comment?: () -> bool + + def restore_comment!: () -> void + + def clear_comment_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def related: () -> untyped? + def related=: (untyped?) -> untyped? + def reload_related: () -> untyped? + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[AuditLog, Integer] + include Enumerable[AuditLog] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[AuditLog, Integer] + end +end diff --git a/sig/rbs_rails/app/models/blocked_item.rbs b/sig/rbs_rails/app/models/blocked_item.rbs new file mode 100644 index 000000000..d0e645574 --- /dev/null +++ b/sig/rbs_rails/app/models/blocked_item.rbs @@ -0,0 +1,315 @@ +class BlockedItem < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[BlockedItem, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def item_type: () -> String? + + def item_type=: (String?) -> String? + + def item_type?: () -> bool + + def item_type_changed?: () -> bool + + def item_type_change: () -> [ String?, String? ] + + def item_type_will_change!: () -> void + + def item_type_was: () -> String? + + def item_type_previously_changed?: () -> bool + + def item_type_previous_change: () -> Array[String?]? + + def item_type_previously_was: () -> String? + + def item_type_before_last_save: () -> String? + + def item_type_change_to_be_saved: () -> Array[String?]? + + def item_type_in_database: () -> String? + + def saved_change_to_item_type: () -> Array[String?]? + + def saved_change_to_item_type?: () -> bool + + def will_save_change_to_item_type?: () -> bool + + def restore_item_type!: () -> void + + def clear_item_type_change: () -> void + + def value: () -> String? + + def value=: (String?) -> String? + + def value?: () -> bool + + def value_changed?: () -> bool + + def value_change: () -> [ String?, String? ] + + def value_will_change!: () -> void + + def value_was: () -> String? + + def value_previously_changed?: () -> bool + + def value_previous_change: () -> Array[String?]? + + def value_previously_was: () -> String? + + def value_before_last_save: () -> String? + + def value_change_to_be_saved: () -> Array[String?]? + + def value_in_database: () -> String? + + def saved_change_to_value: () -> Array[String?]? + + def saved_change_to_value?: () -> bool + + def will_save_change_to_value?: () -> bool + + def restore_value!: () -> void + + def clear_value_change: () -> void + + def expires: () -> ActiveSupport::TimeWithZone? + + def expires=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def expires?: () -> bool + + def expires_changed?: () -> bool + + def expires_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def expires_will_change!: () -> void + + def expires_was: () -> ActiveSupport::TimeWithZone? + + def expires_previously_changed?: () -> bool + + def expires_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def expires_previously_was: () -> ActiveSupport::TimeWithZone? + + def expires_before_last_save: () -> ActiveSupport::TimeWithZone? + + def expires_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def expires_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_expires: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_expires?: () -> bool + + def will_save_change_to_expires?: () -> bool + + def restore_expires!: () -> void + + def clear_expires_change: () -> void + + def automatic: () -> bool? + + def automatic=: (bool?) -> bool? + + def automatic?: () -> bool + + def automatic_changed?: () -> bool + + def automatic_change: () -> [ bool?, bool? ] + + def automatic_will_change!: () -> void + + def automatic_was: () -> bool? + + def automatic_previously_changed?: () -> bool + + def automatic_previous_change: () -> Array[bool?]? + + def automatic_previously_was: () -> bool? + + def automatic_before_last_save: () -> bool? + + def automatic_change_to_be_saved: () -> Array[bool?]? + + def automatic_in_database: () -> bool? + + def saved_change_to_automatic: () -> Array[bool?]? + + def saved_change_to_automatic?: () -> bool + + def will_save_change_to_automatic?: () -> bool + + def restore_automatic!: () -> void + + def clear_automatic_change: () -> void + + def reason: () -> String? + + def reason=: (String?) -> String? + + def reason?: () -> bool + + def reason_changed?: () -> bool + + def reason_change: () -> [ String?, String? ] + + def reason_will_change!: () -> void + + def reason_was: () -> String? + + def reason_previously_changed?: () -> bool + + def reason_previous_change: () -> Array[String?]? + + def reason_previously_was: () -> String? + + def reason_before_last_save: () -> String? + + def reason_change_to_be_saved: () -> Array[String?]? + + def reason_in_database: () -> String? + + def saved_change_to_reason: () -> Array[String?]? + + def saved_change_to_reason?: () -> bool + + def will_save_change_to_reason?: () -> bool + + def restore_reason!: () -> void + + def clear_reason_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.active: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def active: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[BlockedItem, Integer] + include Enumerable[BlockedItem] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[BlockedItem, Integer] + end +end diff --git a/sig/rbs_rails/app/models/category.rbs b/sig/rbs_rails/app/models/category.rbs new file mode 100644 index 000000000..342b683a7 --- /dev/null +++ b/sig/rbs_rails/app/models/category.rbs @@ -0,0 +1,810 @@ +class Category < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Category, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def short_wiki: () -> String? + + def short_wiki=: (String?) -> String? + + def short_wiki?: () -> bool + + def short_wiki_changed?: () -> bool + + def short_wiki_change: () -> [ String?, String? ] + + def short_wiki_will_change!: () -> void + + def short_wiki_was: () -> String? + + def short_wiki_previously_changed?: () -> bool + + def short_wiki_previous_change: () -> Array[String?]? + + def short_wiki_previously_was: () -> String? + + def short_wiki_before_last_save: () -> String? + + def short_wiki_change_to_be_saved: () -> Array[String?]? + + def short_wiki_in_database: () -> String? + + def saved_change_to_short_wiki: () -> Array[String?]? + + def saved_change_to_short_wiki?: () -> bool + + def will_save_change_to_short_wiki?: () -> bool + + def restore_short_wiki!: () -> void + + def clear_short_wiki_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def display_post_types: () -> String? + + def display_post_types=: (String?) -> String? + + def display_post_types?: () -> bool + + def display_post_types_changed?: () -> bool + + def display_post_types_change: () -> [ String?, String? ] + + def display_post_types_will_change!: () -> void + + def display_post_types_was: () -> String? + + def display_post_types_previously_changed?: () -> bool + + def display_post_types_previous_change: () -> Array[String?]? + + def display_post_types_previously_was: () -> String? + + def display_post_types_before_last_save: () -> String? + + def display_post_types_change_to_be_saved: () -> Array[String?]? + + def display_post_types_in_database: () -> String? + + def saved_change_to_display_post_types: () -> Array[String?]? + + def saved_change_to_display_post_types?: () -> bool + + def will_save_change_to_display_post_types?: () -> bool + + def restore_display_post_types!: () -> void + + def clear_display_post_types_change: () -> void + + def is_homepage: () -> bool? + + def is_homepage=: (bool?) -> bool? + + def is_homepage?: () -> bool + + def is_homepage_changed?: () -> bool + + def is_homepage_change: () -> [ bool?, bool? ] + + def is_homepage_will_change!: () -> void + + def is_homepage_was: () -> bool? + + def is_homepage_previously_changed?: () -> bool + + def is_homepage_previous_change: () -> Array[bool?]? + + def is_homepage_previously_was: () -> bool? + + def is_homepage_before_last_save: () -> bool? + + def is_homepage_change_to_be_saved: () -> Array[bool?]? + + def is_homepage_in_database: () -> bool? + + def saved_change_to_is_homepage: () -> Array[bool?]? + + def saved_change_to_is_homepage?: () -> bool + + def will_save_change_to_is_homepage?: () -> bool + + def restore_is_homepage!: () -> void + + def clear_is_homepage_change: () -> void + + def tag_set_id: () -> Integer? + + def tag_set_id=: (Integer?) -> Integer? + + def tag_set_id?: () -> bool + + def tag_set_id_changed?: () -> bool + + def tag_set_id_change: () -> [ Integer?, Integer? ] + + def tag_set_id_will_change!: () -> void + + def tag_set_id_was: () -> Integer? + + def tag_set_id_previously_changed?: () -> bool + + def tag_set_id_previous_change: () -> Array[Integer?]? + + def tag_set_id_previously_was: () -> Integer? + + def tag_set_id_before_last_save: () -> Integer? + + def tag_set_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_set_id_in_database: () -> Integer? + + def saved_change_to_tag_set_id: () -> Array[Integer?]? + + def saved_change_to_tag_set_id?: () -> bool + + def will_save_change_to_tag_set_id?: () -> bool + + def restore_tag_set_id!: () -> void + + def clear_tag_set_id_change: () -> void + + def min_trust_level: () -> Integer? + + def min_trust_level=: (Integer?) -> Integer? + + def min_trust_level?: () -> bool + + def min_trust_level_changed?: () -> bool + + def min_trust_level_change: () -> [ Integer?, Integer? ] + + def min_trust_level_will_change!: () -> void + + def min_trust_level_was: () -> Integer? + + def min_trust_level_previously_changed?: () -> bool + + def min_trust_level_previous_change: () -> Array[Integer?]? + + def min_trust_level_previously_was: () -> Integer? + + def min_trust_level_before_last_save: () -> Integer? + + def min_trust_level_change_to_be_saved: () -> Array[Integer?]? + + def min_trust_level_in_database: () -> Integer? + + def saved_change_to_min_trust_level: () -> Array[Integer?]? + + def saved_change_to_min_trust_level?: () -> bool + + def will_save_change_to_min_trust_level?: () -> bool + + def restore_min_trust_level!: () -> void + + def clear_min_trust_level_change: () -> void + + def button_text: () -> String? + + def button_text=: (String?) -> String? + + def button_text?: () -> bool + + def button_text_changed?: () -> bool + + def button_text_change: () -> [ String?, String? ] + + def button_text_will_change!: () -> void + + def button_text_was: () -> String? + + def button_text_previously_changed?: () -> bool + + def button_text_previous_change: () -> Array[String?]? + + def button_text_previously_was: () -> String? + + def button_text_before_last_save: () -> String? + + def button_text_change_to_be_saved: () -> Array[String?]? + + def button_text_in_database: () -> String? + + def saved_change_to_button_text: () -> Array[String?]? + + def saved_change_to_button_text?: () -> bool + + def will_save_change_to_button_text?: () -> bool + + def restore_button_text!: () -> void + + def clear_button_text_change: () -> void + + def color_code: () -> String? + + def color_code=: (String?) -> String? + + def color_code?: () -> bool + + def color_code_changed?: () -> bool + + def color_code_change: () -> [ String?, String? ] + + def color_code_will_change!: () -> void + + def color_code_was: () -> String? + + def color_code_previously_changed?: () -> bool + + def color_code_previous_change: () -> Array[String?]? + + def color_code_previously_was: () -> String? + + def color_code_before_last_save: () -> String? + + def color_code_change_to_be_saved: () -> Array[String?]? + + def color_code_in_database: () -> String? + + def saved_change_to_color_code: () -> Array[String?]? + + def saved_change_to_color_code?: () -> bool + + def will_save_change_to_color_code?: () -> bool + + def restore_color_code!: () -> void + + def clear_color_code_change: () -> void + + def asking_guidance_override: () -> String? + + def asking_guidance_override=: (String?) -> String? + + def asking_guidance_override?: () -> bool + + def asking_guidance_override_changed?: () -> bool + + def asking_guidance_override_change: () -> [ String?, String? ] + + def asking_guidance_override_will_change!: () -> void + + def asking_guidance_override_was: () -> String? + + def asking_guidance_override_previously_changed?: () -> bool + + def asking_guidance_override_previous_change: () -> Array[String?]? + + def asking_guidance_override_previously_was: () -> String? + + def asking_guidance_override_before_last_save: () -> String? + + def asking_guidance_override_change_to_be_saved: () -> Array[String?]? + + def asking_guidance_override_in_database: () -> String? + + def saved_change_to_asking_guidance_override: () -> Array[String?]? + + def saved_change_to_asking_guidance_override?: () -> bool + + def will_save_change_to_asking_guidance_override?: () -> bool + + def restore_asking_guidance_override!: () -> void + + def clear_asking_guidance_override_change: () -> void + + def answering_guidance_override: () -> String? + + def answering_guidance_override=: (String?) -> String? + + def answering_guidance_override?: () -> bool + + def answering_guidance_override_changed?: () -> bool + + def answering_guidance_override_change: () -> [ String?, String? ] + + def answering_guidance_override_will_change!: () -> void + + def answering_guidance_override_was: () -> String? + + def answering_guidance_override_previously_changed?: () -> bool + + def answering_guidance_override_previous_change: () -> Array[String?]? + + def answering_guidance_override_previously_was: () -> String? + + def answering_guidance_override_before_last_save: () -> String? + + def answering_guidance_override_change_to_be_saved: () -> Array[String?]? + + def answering_guidance_override_in_database: () -> String? + + def saved_change_to_answering_guidance_override: () -> Array[String?]? + + def saved_change_to_answering_guidance_override?: () -> bool + + def will_save_change_to_answering_guidance_override?: () -> bool + + def restore_answering_guidance_override!: () -> void + + def clear_answering_guidance_override_change: () -> void + + def min_view_trust_level: () -> Integer? + + def min_view_trust_level=: (Integer?) -> Integer? + + def min_view_trust_level?: () -> bool + + def min_view_trust_level_changed?: () -> bool + + def min_view_trust_level_change: () -> [ Integer?, Integer? ] + + def min_view_trust_level_will_change!: () -> void + + def min_view_trust_level_was: () -> Integer? + + def min_view_trust_level_previously_changed?: () -> bool + + def min_view_trust_level_previous_change: () -> Array[Integer?]? + + def min_view_trust_level_previously_was: () -> Integer? + + def min_view_trust_level_before_last_save: () -> Integer? + + def min_view_trust_level_change_to_be_saved: () -> Array[Integer?]? + + def min_view_trust_level_in_database: () -> Integer? + + def saved_change_to_min_view_trust_level: () -> Array[Integer?]? + + def saved_change_to_min_view_trust_level?: () -> bool + + def will_save_change_to_min_view_trust_level?: () -> bool + + def restore_min_view_trust_level!: () -> void + + def clear_min_view_trust_level_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def sequence: () -> Integer? + + def sequence=: (Integer?) -> Integer? + + def sequence?: () -> bool + + def sequence_changed?: () -> bool + + def sequence_change: () -> [ Integer?, Integer? ] + + def sequence_will_change!: () -> void + + def sequence_was: () -> Integer? + + def sequence_previously_changed?: () -> bool + + def sequence_previous_change: () -> Array[Integer?]? + + def sequence_previously_was: () -> Integer? + + def sequence_before_last_save: () -> Integer? + + def sequence_change_to_be_saved: () -> Array[Integer?]? + + def sequence_in_database: () -> Integer? + + def saved_change_to_sequence: () -> Array[Integer?]? + + def saved_change_to_sequence?: () -> bool + + def will_save_change_to_sequence?: () -> bool + + def restore_sequence!: () -> void + + def clear_sequence_change: () -> void + + def use_for_hot_posts: () -> bool? + + def use_for_hot_posts=: (bool?) -> bool? + + def use_for_hot_posts?: () -> bool + + def use_for_hot_posts_changed?: () -> bool + + def use_for_hot_posts_change: () -> [ bool?, bool? ] + + def use_for_hot_posts_will_change!: () -> void + + def use_for_hot_posts_was: () -> bool? + + def use_for_hot_posts_previously_changed?: () -> bool + + def use_for_hot_posts_previous_change: () -> Array[bool?]? + + def use_for_hot_posts_previously_was: () -> bool? + + def use_for_hot_posts_before_last_save: () -> bool? + + def use_for_hot_posts_change_to_be_saved: () -> Array[bool?]? + + def use_for_hot_posts_in_database: () -> bool? + + def saved_change_to_use_for_hot_posts: () -> Array[bool?]? + + def saved_change_to_use_for_hot_posts?: () -> bool + + def will_save_change_to_use_for_hot_posts?: () -> bool + + def restore_use_for_hot_posts!: () -> void + + def clear_use_for_hot_posts_change: () -> void + + def use_for_advertisement: () -> bool? + + def use_for_advertisement=: (bool?) -> bool? + + def use_for_advertisement?: () -> bool + + def use_for_advertisement_changed?: () -> bool + + def use_for_advertisement_change: () -> [ bool?, bool? ] + + def use_for_advertisement_will_change!: () -> void + + def use_for_advertisement_was: () -> bool? + + def use_for_advertisement_previously_changed?: () -> bool + + def use_for_advertisement_previous_change: () -> Array[bool?]? + + def use_for_advertisement_previously_was: () -> bool? + + def use_for_advertisement_before_last_save: () -> bool? + + def use_for_advertisement_change_to_be_saved: () -> Array[bool?]? + + def use_for_advertisement_in_database: () -> bool? + + def saved_change_to_use_for_advertisement: () -> Array[bool?]? + + def saved_change_to_use_for_advertisement?: () -> bool + + def will_save_change_to_use_for_advertisement?: () -> bool + + def restore_use_for_advertisement!: () -> void + + def clear_use_for_advertisement_change: () -> void + + def min_title_length: () -> Integer + + def min_title_length=: (Integer) -> Integer + + def min_title_length?: () -> bool + + def min_title_length_changed?: () -> bool + + def min_title_length_change: () -> [ Integer?, Integer? ] + + def min_title_length_will_change!: () -> void + + def min_title_length_was: () -> Integer? + + def min_title_length_previously_changed?: () -> bool + + def min_title_length_previous_change: () -> Array[Integer?]? + + def min_title_length_previously_was: () -> Integer? + + def min_title_length_before_last_save: () -> Integer? + + def min_title_length_change_to_be_saved: () -> Array[Integer?]? + + def min_title_length_in_database: () -> Integer? + + def saved_change_to_min_title_length: () -> Array[Integer?]? + + def saved_change_to_min_title_length?: () -> bool + + def will_save_change_to_min_title_length?: () -> bool + + def restore_min_title_length!: () -> void + + def clear_min_title_length_change: () -> void + + def min_body_length: () -> Integer + + def min_body_length=: (Integer) -> Integer + + def min_body_length?: () -> bool + + def min_body_length_changed?: () -> bool + + def min_body_length_change: () -> [ Integer?, Integer? ] + + def min_body_length_will_change!: () -> void + + def min_body_length_was: () -> Integer? + + def min_body_length_previously_changed?: () -> bool + + def min_body_length_previous_change: () -> Array[Integer?]? + + def min_body_length_previously_was: () -> Integer? + + def min_body_length_before_last_save: () -> Integer? + + def min_body_length_change_to_be_saved: () -> Array[Integer?]? + + def min_body_length_in_database: () -> Integer? + + def saved_change_to_min_body_length: () -> Array[Integer?]? + + def saved_change_to_min_body_length?: () -> bool + + def will_save_change_to_min_body_length?: () -> bool + + def restore_min_body_length!: () -> void + + def clear_min_body_length_change: () -> void + end + include GeneratedAttributeMethods + def category_post_types: () -> CategoryPostType::ActiveRecord_Associations_CollectionProxy + def category_post_types=: (CategoryPostType::ActiveRecord_Associations_CollectionProxy | Array[CategoryPostType]) -> (CategoryPostType::ActiveRecord_Associations_CollectionProxy | Array[CategoryPostType]) + def category_post_type_ids: () -> Array[Integer] + def category_post_type_ids=: (Array[Integer]) -> Array[Integer] + def post_types: () -> PostType::ActiveRecord_Associations_CollectionProxy + def post_types=: (PostType::ActiveRecord_Associations_CollectionProxy | Array[PostType]) -> (PostType::ActiveRecord_Associations_CollectionProxy | Array[PostType]) + def post_type_ids: () -> Array[Integer] + def post_type_ids=: (Array[Integer]) -> Array[Integer] + def posts: () -> Post::ActiveRecord_Associations_CollectionProxy + def posts=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def post_ids: () -> Array[Integer] + def post_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def tag_set: () -> TagSet + def tag_set=: (TagSet?) -> TagSet? + def reload_tag_set: () -> TagSet? + def build_tag_set: (untyped) -> TagSet + def create_tag_set: (untyped) -> TagSet + def create_tag_set!: (untyped) -> TagSet + def license: () -> License + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category, Integer] + include Enumerable[Category] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category, Integer] + end +end diff --git a/sig/rbs_rails/app/models/category_filter_default.rbs b/sig/rbs_rails/app/models/category_filter_default.rbs new file mode 100644 index 000000000..3ef3bc1d0 --- /dev/null +++ b/sig/rbs_rails/app/models/category_filter_default.rbs @@ -0,0 +1,186 @@ +class CategoryFilterDefault < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[CategoryFilterDefault, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def user_id: () -> Integer + + def user_id=: (Integer) -> Integer + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def filter_id: () -> Integer + + def filter_id=: (Integer) -> Integer + + def filter_id?: () -> bool + + def filter_id_changed?: () -> bool + + def filter_id_change: () -> [ Integer?, Integer? ] + + def filter_id_will_change!: () -> void + + def filter_id_was: () -> Integer? + + def filter_id_previously_changed?: () -> bool + + def filter_id_previous_change: () -> Array[Integer?]? + + def filter_id_previously_was: () -> Integer? + + def filter_id_before_last_save: () -> Integer? + + def filter_id_change_to_be_saved: () -> Array[Integer?]? + + def filter_id_in_database: () -> Integer? + + def saved_change_to_filter_id: () -> Array[Integer?]? + + def saved_change_to_filter_id?: () -> bool + + def will_save_change_to_filter_id?: () -> bool + + def restore_filter_id!: () -> void + + def clear_filter_id_change: () -> void + + def category_id: () -> Integer + + def category_id=: (Integer) -> Integer + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + end + include GeneratedAttributeMethods + + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def filter: () -> Filter + def filter=: (Filter?) -> Filter? + def reload_filter: () -> Filter? + def build_filter: (untyped) -> Filter + def create_filter: (untyped) -> Filter + def create_filter!: (untyped) -> Filter + def category: () -> Category + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[CategoryFilterDefault, Integer] + include Enumerable[CategoryFilterDefault] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[CategoryFilterDefault, Integer] + end +end diff --git a/sig/rbs_rails/app/models/category_post_type.rbs b/sig/rbs_rails/app/models/category_post_type.rbs new file mode 100644 index 000000000..82a3daae9 --- /dev/null +++ b/sig/rbs_rails/app/models/category_post_type.rbs @@ -0,0 +1,216 @@ +class CategoryPostType < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[CategoryPostType, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def category_id: () -> Integer + + def category_id=: (Integer) -> Integer + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def upvote_rep: () -> Integer + + def upvote_rep=: (Integer) -> Integer + + def upvote_rep?: () -> bool + + def upvote_rep_changed?: () -> bool + + def upvote_rep_change: () -> [ Integer?, Integer? ] + + def upvote_rep_will_change!: () -> void + + def upvote_rep_was: () -> Integer? + + def upvote_rep_previously_changed?: () -> bool + + def upvote_rep_previous_change: () -> Array[Integer?]? + + def upvote_rep_previously_was: () -> Integer? + + def upvote_rep_before_last_save: () -> Integer? + + def upvote_rep_change_to_be_saved: () -> Array[Integer?]? + + def upvote_rep_in_database: () -> Integer? + + def saved_change_to_upvote_rep: () -> Array[Integer?]? + + def saved_change_to_upvote_rep?: () -> bool + + def will_save_change_to_upvote_rep?: () -> bool + + def restore_upvote_rep!: () -> void + + def clear_upvote_rep_change: () -> void + + def downvote_rep: () -> Integer + + def downvote_rep=: (Integer) -> Integer + + def downvote_rep?: () -> bool + + def downvote_rep_changed?: () -> bool + + def downvote_rep_change: () -> [ Integer?, Integer? ] + + def downvote_rep_will_change!: () -> void + + def downvote_rep_was: () -> Integer? + + def downvote_rep_previously_changed?: () -> bool + + def downvote_rep_previous_change: () -> Array[Integer?]? + + def downvote_rep_previously_was: () -> Integer? + + def downvote_rep_before_last_save: () -> Integer? + + def downvote_rep_change_to_be_saved: () -> Array[Integer?]? + + def downvote_rep_in_database: () -> Integer? + + def saved_change_to_downvote_rep: () -> Array[Integer?]? + + def saved_change_to_downvote_rep?: () -> bool + + def will_save_change_to_downvote_rep?: () -> bool + + def restore_downvote_rep!: () -> void + + def clear_downvote_rep_change: () -> void + end + include GeneratedAttributeMethods + + def category: () -> Category + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[CategoryPostType, Integer] + include Enumerable[CategoryPostType] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[CategoryPostType, Integer] + end +end diff --git a/sig/rbs_rails/app/models/close_reason.rbs b/sig/rbs_rails/app/models/close_reason.rbs new file mode 100644 index 000000000..7aeb4685a --- /dev/null +++ b/sig/rbs_rails/app/models/close_reason.rbs @@ -0,0 +1,249 @@ +class CloseReason < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[CloseReason, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def requires_other_post: () -> bool? + + def requires_other_post=: (bool?) -> bool? + + def requires_other_post?: () -> bool + + def requires_other_post_changed?: () -> bool + + def requires_other_post_change: () -> [ bool?, bool? ] + + def requires_other_post_will_change!: () -> void + + def requires_other_post_was: () -> bool? + + def requires_other_post_previously_changed?: () -> bool + + def requires_other_post_previous_change: () -> Array[bool?]? + + def requires_other_post_previously_was: () -> bool? + + def requires_other_post_before_last_save: () -> bool? + + def requires_other_post_change_to_be_saved: () -> Array[bool?]? + + def requires_other_post_in_database: () -> bool? + + def saved_change_to_requires_other_post: () -> Array[bool?]? + + def saved_change_to_requires_other_post?: () -> bool + + def will_save_change_to_requires_other_post?: () -> bool + + def restore_requires_other_post!: () -> void + + def clear_requires_other_post_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community? + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.active: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def active: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[CloseReason, Integer] + include Enumerable[CloseReason] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[CloseReason, Integer] + end +end diff --git a/sig/rbs_rails/app/models/comment.rbs b/sig/rbs_rails/app/models/comment.rbs new file mode 100644 index 000000000..6646126e5 --- /dev/null +++ b/sig/rbs_rails/app/models/comment.rbs @@ -0,0 +1,501 @@ +class Comment < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Comment, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def content: () -> String? + + def content=: (String?) -> String? + + def content?: () -> bool + + def content_changed?: () -> bool + + def content_change: () -> [ String?, String? ] + + def content_will_change!: () -> void + + def content_was: () -> String? + + def content_previously_changed?: () -> bool + + def content_previous_change: () -> Array[String?]? + + def content_previously_was: () -> String? + + def content_before_last_save: () -> String? + + def content_change_to_be_saved: () -> Array[String?]? + + def content_in_database: () -> String? + + def saved_change_to_content: () -> Array[String?]? + + def saved_change_to_content?: () -> bool + + def will_save_change_to_content?: () -> bool + + def restore_content!: () -> void + + def clear_content_change: () -> void + + def deleted: () -> bool? + + def deleted=: (bool?) -> bool? + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def comment_thread_id: () -> Integer? + + def comment_thread_id=: (Integer?) -> Integer? + + def comment_thread_id?: () -> bool + + def comment_thread_id_changed?: () -> bool + + def comment_thread_id_change: () -> [ Integer?, Integer? ] + + def comment_thread_id_will_change!: () -> void + + def comment_thread_id_was: () -> Integer? + + def comment_thread_id_previously_changed?: () -> bool + + def comment_thread_id_previous_change: () -> Array[Integer?]? + + def comment_thread_id_previously_was: () -> Integer? + + def comment_thread_id_before_last_save: () -> Integer? + + def comment_thread_id_change_to_be_saved: () -> Array[Integer?]? + + def comment_thread_id_in_database: () -> Integer? + + def saved_change_to_comment_thread_id: () -> Array[Integer?]? + + def saved_change_to_comment_thread_id?: () -> bool + + def will_save_change_to_comment_thread_id?: () -> bool + + def restore_comment_thread_id!: () -> void + + def clear_comment_thread_id_change: () -> void + + def has_reference: () -> bool + + def has_reference=: (bool) -> bool + + def has_reference?: () -> bool + + def has_reference_changed?: () -> bool + + def has_reference_change: () -> [ bool?, bool? ] + + def has_reference_will_change!: () -> void + + def has_reference_was: () -> bool? + + def has_reference_previously_changed?: () -> bool + + def has_reference_previous_change: () -> Array[bool?]? + + def has_reference_previously_was: () -> bool? + + def has_reference_before_last_save: () -> bool? + + def has_reference_change_to_be_saved: () -> Array[bool?]? + + def has_reference_in_database: () -> bool? + + def saved_change_to_has_reference: () -> Array[bool?]? + + def saved_change_to_has_reference?: () -> bool + + def will_save_change_to_has_reference?: () -> bool + + def restore_has_reference!: () -> void + + def clear_has_reference_change: () -> void + + def reference_text: () -> String? + + def reference_text=: (String?) -> String? + + def reference_text?: () -> bool + + def reference_text_changed?: () -> bool + + def reference_text_change: () -> [ String?, String? ] + + def reference_text_will_change!: () -> void + + def reference_text_was: () -> String? + + def reference_text_previously_changed?: () -> bool + + def reference_text_previous_change: () -> Array[String?]? + + def reference_text_previously_was: () -> String? + + def reference_text_before_last_save: () -> String? + + def reference_text_change_to_be_saved: () -> Array[String?]? + + def reference_text_in_database: () -> String? + + def saved_change_to_reference_text: () -> Array[String?]? + + def saved_change_to_reference_text?: () -> bool + + def will_save_change_to_reference_text?: () -> bool + + def restore_reference_text!: () -> void + + def clear_reference_text_change: () -> void + + def references_comment_id: () -> Integer? + + def references_comment_id=: (Integer?) -> Integer? + + def references_comment_id?: () -> bool + + def references_comment_id_changed?: () -> bool + + def references_comment_id_change: () -> [ Integer?, Integer? ] + + def references_comment_id_will_change!: () -> void + + def references_comment_id_was: () -> Integer? + + def references_comment_id_previously_changed?: () -> bool + + def references_comment_id_previous_change: () -> Array[Integer?]? + + def references_comment_id_previously_was: () -> Integer? + + def references_comment_id_before_last_save: () -> Integer? + + def references_comment_id_change_to_be_saved: () -> Array[Integer?]? + + def references_comment_id_in_database: () -> Integer? + + def saved_change_to_references_comment_id: () -> Array[Integer?]? + + def saved_change_to_references_comment_id?: () -> bool + + def will_save_change_to_references_comment_id?: () -> bool + + def restore_references_comment_id!: () -> void + + def clear_references_comment_id_change: () -> void + end + include GeneratedAttributeMethods + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def parent_question: () -> Question? + def parent_question=: (Question?) -> Question? + def build_parent_question: (untyped) -> Question + def create_parent_question: (untyped) -> Question + def create_parent_question!: (untyped) -> Question + def reload_parent_question: () -> Question? + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def comment_thread: () -> CommentThread + def comment_thread=: (CommentThread?) -> CommentThread? + def reload_comment_thread: () -> CommentThread? + def build_comment_thread: (untyped) -> CommentThread + def create_comment_thread: (untyped) -> CommentThread + def create_comment_thread!: (untyped) -> CommentThread + def references_comment: () -> Comment? + def references_comment=: (Comment?) -> Comment? + def reload_references_comment: () -> Comment? + def build_references_comment: (untyped) -> Comment + def create_references_comment: (untyped) -> Comment + def create_references_comment!: (untyped) -> Comment + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.deleted: () -> ActiveRecord_Relation + def self.undeleted: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def deleted: () -> ActiveRecord_Relation + + def undeleted: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Comment, Integer] + include Enumerable[Comment] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Comment, Integer] + end +end diff --git a/sig/rbs_rails/app/models/comment_thread.rbs b/sig/rbs_rails/app/models/comment_thread.rbs new file mode 100644 index 000000000..b4d93b5cb --- /dev/null +++ b/sig/rbs_rails/app/models/comment_thread.rbs @@ -0,0 +1,617 @@ +class CommentThread < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[CommentThread, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def reply_count: () -> Integer + + def reply_count=: (Integer) -> Integer + + def reply_count?: () -> bool + + def reply_count_changed?: () -> bool + + def reply_count_change: () -> [ Integer?, Integer? ] + + def reply_count_will_change!: () -> void + + def reply_count_was: () -> Integer? + + def reply_count_previously_changed?: () -> bool + + def reply_count_previous_change: () -> Array[Integer?]? + + def reply_count_previously_was: () -> Integer? + + def reply_count_before_last_save: () -> Integer? + + def reply_count_change_to_be_saved: () -> Array[Integer?]? + + def reply_count_in_database: () -> Integer? + + def saved_change_to_reply_count: () -> Array[Integer?]? + + def saved_change_to_reply_count?: () -> bool + + def will_save_change_to_reply_count?: () -> bool + + def restore_reply_count!: () -> void + + def clear_reply_count_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + + def archived: () -> bool + + def archived=: (bool) -> bool + + def archived?: () -> bool + + def archived_changed?: () -> bool + + def archived_change: () -> [ bool?, bool? ] + + def archived_will_change!: () -> void + + def archived_was: () -> bool? + + def archived_previously_changed?: () -> bool + + def archived_previous_change: () -> Array[bool?]? + + def archived_previously_was: () -> bool? + + def archived_before_last_save: () -> bool? + + def archived_change_to_be_saved: () -> Array[bool?]? + + def archived_in_database: () -> bool? + + def saved_change_to_archived: () -> Array[bool?]? + + def saved_change_to_archived?: () -> bool + + def will_save_change_to_archived?: () -> bool + + def restore_archived!: () -> void + + def clear_archived_change: () -> void + + def archived_by_id: () -> Integer? + + def archived_by_id=: (Integer?) -> Integer? + + def archived_by_id?: () -> bool + + def archived_by_id_changed?: () -> bool + + def archived_by_id_change: () -> [ Integer?, Integer? ] + + def archived_by_id_will_change!: () -> void + + def archived_by_id_was: () -> Integer? + + def archived_by_id_previously_changed?: () -> bool + + def archived_by_id_previous_change: () -> Array[Integer?]? + + def archived_by_id_previously_was: () -> Integer? + + def archived_by_id_before_last_save: () -> Integer? + + def archived_by_id_change_to_be_saved: () -> Array[Integer?]? + + def archived_by_id_in_database: () -> Integer? + + def saved_change_to_archived_by_id: () -> Array[Integer?]? + + def saved_change_to_archived_by_id?: () -> bool + + def will_save_change_to_archived_by_id?: () -> bool + + def restore_archived_by_id!: () -> void + + def clear_archived_by_id_change: () -> void + + def ever_archived_before: () -> bool? + + def ever_archived_before=: (bool?) -> bool? + + def ever_archived_before?: () -> bool + + def ever_archived_before_changed?: () -> bool + + def ever_archived_before_change: () -> [ bool?, bool? ] + + def ever_archived_before_will_change!: () -> void + + def ever_archived_before_was: () -> bool? + + def ever_archived_before_previously_changed?: () -> bool + + def ever_archived_before_previous_change: () -> Array[bool?]? + + def ever_archived_before_previously_was: () -> bool? + + def ever_archived_before_before_last_save: () -> bool? + + def ever_archived_before_change_to_be_saved: () -> Array[bool?]? + + def ever_archived_before_in_database: () -> bool? + + def saved_change_to_ever_archived_before: () -> Array[bool?]? + + def saved_change_to_ever_archived_before?: () -> bool + + def will_save_change_to_ever_archived_before?: () -> bool + + def restore_ever_archived_before!: () -> void + + def clear_ever_archived_before_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def thread_follower: () -> ThreadFollower::ActiveRecord_Associations_CollectionProxy + def thread_follower=: (ThreadFollower::ActiveRecord_Associations_CollectionProxy | Array[ThreadFollower]) -> (ThreadFollower::ActiveRecord_Associations_CollectionProxy | Array[ThreadFollower]) + def thread_follower_ids: () -> Array[Integer] + def thread_follower_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def archived_by: () -> User? + def archived_by=: (User?) -> User? + def reload_archived_by: () -> User? + def build_archived_by: (untyped) -> User + def create_archived_by: (untyped) -> User + def create_archived_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.deleted: () -> ActiveRecord_Relation + def self.undeleted: () -> ActiveRecord_Relation + def self.initially_visible: () -> ActiveRecord_Relation + def self.publicly_available: () -> ActiveRecord_Relation + def self.archived: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def deleted: () -> ActiveRecord_Relation + + def undeleted: () -> ActiveRecord_Relation + + def initially_visible: () -> ActiveRecord_Relation + + def publicly_available: () -> ActiveRecord_Relation + + def archived: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[CommentThread, Integer] + include Enumerable[CommentThread] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[CommentThread, Integer] + end +end diff --git a/sig/rbs_rails/app/models/community.rbs b/sig/rbs_rails/app/models/community.rbs new file mode 100644 index 000000000..bad285b45 --- /dev/null +++ b/sig/rbs_rails/app/models/community.rbs @@ -0,0 +1,284 @@ +class Community < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Community, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String + + def name=: (String) -> String + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def host: () -> String + + def host=: (String) -> String + + def host?: () -> bool + + def host_changed?: () -> bool + + def host_change: () -> [ String?, String? ] + + def host_will_change!: () -> void + + def host_was: () -> String? + + def host_previously_changed?: () -> bool + + def host_previous_change: () -> Array[String?]? + + def host_previously_was: () -> String? + + def host_before_last_save: () -> String? + + def host_change_to_be_saved: () -> Array[String?]? + + def host_in_database: () -> String? + + def saved_change_to_host: () -> Array[String?]? + + def saved_change_to_host?: () -> bool + + def will_save_change_to_host?: () -> bool + + def restore_host!: () -> void + + def clear_host_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def is_fake: () -> bool? + + def is_fake=: (bool?) -> bool? + + def is_fake?: () -> bool + + def is_fake_changed?: () -> bool + + def is_fake_change: () -> [ bool?, bool? ] + + def is_fake_will_change!: () -> void + + def is_fake_was: () -> bool? + + def is_fake_previously_changed?: () -> bool + + def is_fake_previous_change: () -> Array[bool?]? + + def is_fake_previously_was: () -> bool? + + def is_fake_before_last_save: () -> bool? + + def is_fake_change_to_be_saved: () -> Array[bool?]? + + def is_fake_in_database: () -> bool? + + def saved_change_to_is_fake: () -> Array[bool?]? + + def saved_change_to_is_fake?: () -> bool + + def will_save_change_to_is_fake?: () -> bool + + def restore_is_fake!: () -> void + + def clear_is_fake_change: () -> void + + def hidden: () -> bool? + + def hidden=: (bool?) -> bool? + + def hidden?: () -> bool + + def hidden_changed?: () -> bool + + def hidden_change: () -> [ bool?, bool? ] + + def hidden_will_change!: () -> void + + def hidden_was: () -> bool? + + def hidden_previously_changed?: () -> bool + + def hidden_previous_change: () -> Array[bool?]? + + def hidden_previously_was: () -> bool? + + def hidden_before_last_save: () -> bool? + + def hidden_change_to_be_saved: () -> Array[bool?]? + + def hidden_in_database: () -> bool? + + def saved_change_to_hidden: () -> Array[bool?]? + + def saved_change_to_hidden?: () -> bool + + def will_save_change_to_hidden?: () -> bool + + def restore_hidden!: () -> void + + def clear_hidden_change: () -> void + end + include GeneratedAttributeMethods + def community_users: () -> CommunityUser::ActiveRecord_Associations_CollectionProxy + def community_users=: (CommunityUser::ActiveRecord_Associations_CollectionProxy | Array[CommunityUser]) -> (CommunityUser::ActiveRecord_Associations_CollectionProxy | Array[CommunityUser]) + def community_user_ids: () -> Array[Integer] + def community_user_ids=: (Array[Integer]) -> Array[Integer] + def site_settings: () -> SiteSetting::ActiveRecord_Associations_CollectionProxy + def site_settings=: (SiteSetting::ActiveRecord_Associations_CollectionProxy | Array[SiteSetting]) -> (SiteSetting::ActiveRecord_Associations_CollectionProxy | Array[SiteSetting]) + def site_setting_ids: () -> Array[Integer] + def site_setting_ids=: (Array[Integer]) -> Array[Integer] + + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Community, Integer] + include Enumerable[Community] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Community, Integer] + end +end diff --git a/sig/rbs_rails/app/models/community_user.rbs b/sig/rbs_rails/app/models/community_user.rbs new file mode 100644 index 000000000..899029e83 --- /dev/null +++ b/sig/rbs_rails/app/models/community_user.rbs @@ -0,0 +1,599 @@ +class CommunityUser < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[CommunityUser, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def user_id: () -> Integer + + def user_id=: (Integer) -> Integer + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def is_moderator: () -> bool? + + def is_moderator=: (bool?) -> bool? + + def is_moderator?: () -> bool + + def is_moderator_changed?: () -> bool + + def is_moderator_change: () -> [ bool?, bool? ] + + def is_moderator_will_change!: () -> void + + def is_moderator_was: () -> bool? + + def is_moderator_previously_changed?: () -> bool + + def is_moderator_previous_change: () -> Array[bool?]? + + def is_moderator_previously_was: () -> bool? + + def is_moderator_before_last_save: () -> bool? + + def is_moderator_change_to_be_saved: () -> Array[bool?]? + + def is_moderator_in_database: () -> bool? + + def saved_change_to_is_moderator: () -> Array[bool?]? + + def saved_change_to_is_moderator?: () -> bool + + def will_save_change_to_is_moderator?: () -> bool + + def restore_is_moderator!: () -> void + + def clear_is_moderator_change: () -> void + + def is_admin: () -> bool? + + def is_admin=: (bool?) -> bool? + + def is_admin?: () -> bool + + def is_admin_changed?: () -> bool + + def is_admin_change: () -> [ bool?, bool? ] + + def is_admin_will_change!: () -> void + + def is_admin_was: () -> bool? + + def is_admin_previously_changed?: () -> bool + + def is_admin_previous_change: () -> Array[bool?]? + + def is_admin_previously_was: () -> bool? + + def is_admin_before_last_save: () -> bool? + + def is_admin_change_to_be_saved: () -> Array[bool?]? + + def is_admin_in_database: () -> bool? + + def saved_change_to_is_admin: () -> Array[bool?]? + + def saved_change_to_is_admin?: () -> bool + + def will_save_change_to_is_admin?: () -> bool + + def restore_is_admin!: () -> void + + def clear_is_admin_change: () -> void + + def reputation: () -> Integer? + + def reputation=: (Integer?) -> Integer? + + def reputation?: () -> bool + + def reputation_changed?: () -> bool + + def reputation_change: () -> [ Integer?, Integer? ] + + def reputation_will_change!: () -> void + + def reputation_was: () -> Integer? + + def reputation_previously_changed?: () -> bool + + def reputation_previous_change: () -> Array[Integer?]? + + def reputation_previously_was: () -> Integer? + + def reputation_before_last_save: () -> Integer? + + def reputation_change_to_be_saved: () -> Array[Integer?]? + + def reputation_in_database: () -> Integer? + + def saved_change_to_reputation: () -> Array[Integer?]? + + def saved_change_to_reputation?: () -> bool + + def will_save_change_to_reputation?: () -> bool + + def restore_reputation!: () -> void + + def clear_reputation_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def is_suspended: () -> bool? + + def is_suspended=: (bool?) -> bool? + + def is_suspended?: () -> bool + + def is_suspended_changed?: () -> bool + + def is_suspended_change: () -> [ bool?, bool? ] + + def is_suspended_will_change!: () -> void + + def is_suspended_was: () -> bool? + + def is_suspended_previously_changed?: () -> bool + + def is_suspended_previous_change: () -> Array[bool?]? + + def is_suspended_previously_was: () -> bool? + + def is_suspended_before_last_save: () -> bool? + + def is_suspended_change_to_be_saved: () -> Array[bool?]? + + def is_suspended_in_database: () -> bool? + + def saved_change_to_is_suspended: () -> Array[bool?]? + + def saved_change_to_is_suspended?: () -> bool + + def will_save_change_to_is_suspended?: () -> bool + + def restore_is_suspended!: () -> void + + def clear_is_suspended_change: () -> void + + def suspension_end: () -> ActiveSupport::TimeWithZone? + + def suspension_end=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def suspension_end?: () -> bool + + def suspension_end_changed?: () -> bool + + def suspension_end_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def suspension_end_will_change!: () -> void + + def suspension_end_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_previously_changed?: () -> bool + + def suspension_end_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_previously_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_before_last_save: () -> ActiveSupport::TimeWithZone? + + def suspension_end_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_suspension_end: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_suspension_end?: () -> bool + + def will_save_change_to_suspension_end?: () -> bool + + def restore_suspension_end!: () -> void + + def clear_suspension_end_change: () -> void + + def suspension_public_comment: () -> String? + + def suspension_public_comment=: (String?) -> String? + + def suspension_public_comment?: () -> bool + + def suspension_public_comment_changed?: () -> bool + + def suspension_public_comment_change: () -> [ String?, String? ] + + def suspension_public_comment_will_change!: () -> void + + def suspension_public_comment_was: () -> String? + + def suspension_public_comment_previously_changed?: () -> bool + + def suspension_public_comment_previous_change: () -> Array[String?]? + + def suspension_public_comment_previously_was: () -> String? + + def suspension_public_comment_before_last_save: () -> String? + + def suspension_public_comment_change_to_be_saved: () -> Array[String?]? + + def suspension_public_comment_in_database: () -> String? + + def saved_change_to_suspension_public_comment: () -> Array[String?]? + + def saved_change_to_suspension_public_comment?: () -> bool + + def will_save_change_to_suspension_public_comment?: () -> bool + + def restore_suspension_public_comment!: () -> void + + def clear_suspension_public_comment_change: () -> void + + def trust_level: () -> Integer? + + def trust_level=: (Integer?) -> Integer? + + def trust_level?: () -> bool + + def trust_level_changed?: () -> bool + + def trust_level_change: () -> [ Integer?, Integer? ] + + def trust_level_will_change!: () -> void + + def trust_level_was: () -> Integer? + + def trust_level_previously_changed?: () -> bool + + def trust_level_previous_change: () -> Array[Integer?]? + + def trust_level_previously_was: () -> Integer? + + def trust_level_before_last_save: () -> Integer? + + def trust_level_change_to_be_saved: () -> Array[Integer?]? + + def trust_level_in_database: () -> Integer? + + def saved_change_to_trust_level: () -> Array[Integer?]? + + def saved_change_to_trust_level?: () -> bool + + def will_save_change_to_trust_level?: () -> bool + + def restore_trust_level!: () -> void + + def clear_trust_level_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + end + include GeneratedAttributeMethods + def mod_warnings: () -> ModWarning::ActiveRecord_Associations_CollectionProxy + def mod_warnings=: (ModWarning::ActiveRecord_Associations_CollectionProxy | Array[ModWarning]) -> (ModWarning::ActiveRecord_Associations_CollectionProxy | Array[ModWarning]) + def mod_warning_ids: () -> Array[Integer] + def mod_warning_ids=: (Array[Integer]) -> Array[Integer] + def user_abilities: () -> UserAbility::ActiveRecord_Associations_CollectionProxy + def user_abilities=: (UserAbility::ActiveRecord_Associations_CollectionProxy | Array[UserAbility]) -> (UserAbility::ActiveRecord_Associations_CollectionProxy | Array[UserAbility]) + def user_ability_ids: () -> Array[Integer] + def user_ability_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.for_context: () -> ActiveRecord_Relation + def self.active: () -> ActiveRecord_Relation + def self.deleted: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def for_context: () -> ActiveRecord_Relation + + def active: () -> ActiveRecord_Relation + + def deleted: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[CommunityUser, Integer] + include Enumerable[CommunityUser] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[CommunityUser, Integer] + end +end diff --git a/sig/rbs_rails/app/models/error_log.rbs b/sig/rbs_rails/app/models/error_log.rbs new file mode 100644 index 000000000..f4a124a84 --- /dev/null +++ b/sig/rbs_rails/app/models/error_log.rbs @@ -0,0 +1,468 @@ +class ErrorLog < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[ErrorLog, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def klass: () -> String? + + def klass=: (String?) -> String? + + def klass?: () -> bool + + def klass_changed?: () -> bool + + def klass_change: () -> [ String?, String? ] + + def klass_will_change!: () -> void + + def klass_was: () -> String? + + def klass_previously_changed?: () -> bool + + def klass_previous_change: () -> Array[String?]? + + def klass_previously_was: () -> String? + + def klass_before_last_save: () -> String? + + def klass_change_to_be_saved: () -> Array[String?]? + + def klass_in_database: () -> String? + + def saved_change_to_klass: () -> Array[String?]? + + def saved_change_to_klass?: () -> bool + + def will_save_change_to_klass?: () -> bool + + def restore_klass!: () -> void + + def clear_klass_change: () -> void + + def message: () -> String? + + def message=: (String?) -> String? + + def message?: () -> bool + + def message_changed?: () -> bool + + def message_change: () -> [ String?, String? ] + + def message_will_change!: () -> void + + def message_was: () -> String? + + def message_previously_changed?: () -> bool + + def message_previous_change: () -> Array[String?]? + + def message_previously_was: () -> String? + + def message_before_last_save: () -> String? + + def message_change_to_be_saved: () -> Array[String?]? + + def message_in_database: () -> String? + + def saved_change_to_message: () -> Array[String?]? + + def saved_change_to_message?: () -> bool + + def will_save_change_to_message?: () -> bool + + def restore_message!: () -> void + + def clear_message_change: () -> void + + def backtrace: () -> String? + + def backtrace=: (String?) -> String? + + def backtrace?: () -> bool + + def backtrace_changed?: () -> bool + + def backtrace_change: () -> [ String?, String? ] + + def backtrace_will_change!: () -> void + + def backtrace_was: () -> String? + + def backtrace_previously_changed?: () -> bool + + def backtrace_previous_change: () -> Array[String?]? + + def backtrace_previously_was: () -> String? + + def backtrace_before_last_save: () -> String? + + def backtrace_change_to_be_saved: () -> Array[String?]? + + def backtrace_in_database: () -> String? + + def saved_change_to_backtrace: () -> Array[String?]? + + def saved_change_to_backtrace?: () -> bool + + def will_save_change_to_backtrace?: () -> bool + + def restore_backtrace!: () -> void + + def clear_backtrace_change: () -> void + + def request_uri: () -> String + + def request_uri=: (String) -> String + + def request_uri?: () -> bool + + def request_uri_changed?: () -> bool + + def request_uri_change: () -> [ String?, String? ] + + def request_uri_will_change!: () -> void + + def request_uri_was: () -> String? + + def request_uri_previously_changed?: () -> bool + + def request_uri_previous_change: () -> Array[String?]? + + def request_uri_previously_was: () -> String? + + def request_uri_before_last_save: () -> String? + + def request_uri_change_to_be_saved: () -> Array[String?]? + + def request_uri_in_database: () -> String? + + def saved_change_to_request_uri: () -> Array[String?]? + + def saved_change_to_request_uri?: () -> bool + + def will_save_change_to_request_uri?: () -> bool + + def restore_request_uri!: () -> void + + def clear_request_uri_change: () -> void + + def host: () -> String + + def host=: (String) -> String + + def host?: () -> bool + + def host_changed?: () -> bool + + def host_change: () -> [ String?, String? ] + + def host_will_change!: () -> void + + def host_was: () -> String? + + def host_previously_changed?: () -> bool + + def host_previous_change: () -> Array[String?]? + + def host_previously_was: () -> String? + + def host_before_last_save: () -> String? + + def host_change_to_be_saved: () -> Array[String?]? + + def host_in_database: () -> String? + + def saved_change_to_host: () -> Array[String?]? + + def saved_change_to_host?: () -> bool + + def will_save_change_to_host?: () -> bool + + def restore_host!: () -> void + + def clear_host_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def uuid: () -> String? + + def uuid=: (String?) -> String? + + def uuid?: () -> bool + + def uuid_changed?: () -> bool + + def uuid_change: () -> [ String?, String? ] + + def uuid_will_change!: () -> void + + def uuid_was: () -> String? + + def uuid_previously_changed?: () -> bool + + def uuid_previous_change: () -> Array[String?]? + + def uuid_previously_was: () -> String? + + def uuid_before_last_save: () -> String? + + def uuid_change_to_be_saved: () -> Array[String?]? + + def uuid_in_database: () -> String? + + def saved_change_to_uuid: () -> Array[String?]? + + def saved_change_to_uuid?: () -> bool + + def will_save_change_to_uuid?: () -> bool + + def restore_uuid!: () -> void + + def clear_uuid_change: () -> void + + def user_agent: () -> String? + + def user_agent=: (String?) -> String? + + def user_agent?: () -> bool + + def user_agent_changed?: () -> bool + + def user_agent_change: () -> [ String?, String? ] + + def user_agent_will_change!: () -> void + + def user_agent_was: () -> String? + + def user_agent_previously_changed?: () -> bool + + def user_agent_previous_change: () -> Array[String?]? + + def user_agent_previously_was: () -> String? + + def user_agent_before_last_save: () -> String? + + def user_agent_change_to_be_saved: () -> Array[String?]? + + def user_agent_in_database: () -> String? + + def saved_change_to_user_agent: () -> Array[String?]? + + def saved_change_to_user_agent?: () -> bool + + def will_save_change_to_user_agent?: () -> bool + + def restore_user_agent!: () -> void + + def clear_user_agent_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community? + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ErrorLog, Integer] + include Enumerable[ErrorLog] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ErrorLog, Integer] + end +end diff --git a/sig/rbs_rails/app/models/filter.rbs b/sig/rbs_rails/app/models/filter.rbs new file mode 100644 index 000000000..5d9731f03 --- /dev/null +++ b/sig/rbs_rails/app/models/filter.rbs @@ -0,0 +1,466 @@ +class Filter < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Filter, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def user_id: () -> Integer + + def user_id=: (Integer) -> Integer + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def name: () -> String + + def name=: (String) -> String + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def min_score: () -> Float? + + def min_score=: (Float?) -> Float? + + def min_score?: () -> bool + + def min_score_changed?: () -> bool + + def min_score_change: () -> [ Float?, Float? ] + + def min_score_will_change!: () -> void + + def min_score_was: () -> Float? + + def min_score_previously_changed?: () -> bool + + def min_score_previous_change: () -> Array[Float?]? + + def min_score_previously_was: () -> Float? + + def min_score_before_last_save: () -> Float? + + def min_score_change_to_be_saved: () -> Array[Float?]? + + def min_score_in_database: () -> Float? + + def saved_change_to_min_score: () -> Array[Float?]? + + def saved_change_to_min_score?: () -> bool + + def will_save_change_to_min_score?: () -> bool + + def restore_min_score!: () -> void + + def clear_min_score_change: () -> void + + def max_score: () -> Float? + + def max_score=: (Float?) -> Float? + + def max_score?: () -> bool + + def max_score_changed?: () -> bool + + def max_score_change: () -> [ Float?, Float? ] + + def max_score_will_change!: () -> void + + def max_score_was: () -> Float? + + def max_score_previously_changed?: () -> bool + + def max_score_previous_change: () -> Array[Float?]? + + def max_score_previously_was: () -> Float? + + def max_score_before_last_save: () -> Float? + + def max_score_change_to_be_saved: () -> Array[Float?]? + + def max_score_in_database: () -> Float? + + def saved_change_to_max_score: () -> Array[Float?]? + + def saved_change_to_max_score?: () -> bool + + def will_save_change_to_max_score?: () -> bool + + def restore_max_score!: () -> void + + def clear_max_score_change: () -> void + + def min_answers: () -> Integer? + + def min_answers=: (Integer?) -> Integer? + + def min_answers?: () -> bool + + def min_answers_changed?: () -> bool + + def min_answers_change: () -> [ Integer?, Integer? ] + + def min_answers_will_change!: () -> void + + def min_answers_was: () -> Integer? + + def min_answers_previously_changed?: () -> bool + + def min_answers_previous_change: () -> Array[Integer?]? + + def min_answers_previously_was: () -> Integer? + + def min_answers_before_last_save: () -> Integer? + + def min_answers_change_to_be_saved: () -> Array[Integer?]? + + def min_answers_in_database: () -> Integer? + + def saved_change_to_min_answers: () -> Array[Integer?]? + + def saved_change_to_min_answers?: () -> bool + + def will_save_change_to_min_answers?: () -> bool + + def restore_min_answers!: () -> void + + def clear_min_answers_change: () -> void + + def max_answers: () -> Integer? + + def max_answers=: (Integer?) -> Integer? + + def max_answers?: () -> bool + + def max_answers_changed?: () -> bool + + def max_answers_change: () -> [ Integer?, Integer? ] + + def max_answers_will_change!: () -> void + + def max_answers_was: () -> Integer? + + def max_answers_previously_changed?: () -> bool + + def max_answers_previous_change: () -> Array[Integer?]? + + def max_answers_previously_was: () -> Integer? + + def max_answers_before_last_save: () -> Integer? + + def max_answers_change_to_be_saved: () -> Array[Integer?]? + + def max_answers_in_database: () -> Integer? + + def saved_change_to_max_answers: () -> Array[Integer?]? + + def saved_change_to_max_answers?: () -> bool + + def will_save_change_to_max_answers?: () -> bool + + def restore_max_answers!: () -> void + + def clear_max_answers_change: () -> void + + def status: () -> String? + + def status=: (String?) -> String? + + def status?: () -> bool + + def status_changed?: () -> bool + + def status_change: () -> [ String?, String? ] + + def status_will_change!: () -> void + + def status_was: () -> String? + + def status_previously_changed?: () -> bool + + def status_previous_change: () -> Array[String?]? + + def status_previously_was: () -> String? + + def status_before_last_save: () -> String? + + def status_change_to_be_saved: () -> Array[String?]? + + def status_in_database: () -> String? + + def saved_change_to_status: () -> Array[String?]? + + def saved_change_to_status?: () -> bool + + def will_save_change_to_status?: () -> bool + + def restore_status!: () -> void + + def clear_status_change: () -> void + + def include_tags: () -> String? + + def include_tags=: (String?) -> String? + + def include_tags?: () -> bool + + def include_tags_changed?: () -> bool + + def include_tags_change: () -> [ String?, String? ] + + def include_tags_will_change!: () -> void + + def include_tags_was: () -> String? + + def include_tags_previously_changed?: () -> bool + + def include_tags_previous_change: () -> Array[String?]? + + def include_tags_previously_was: () -> String? + + def include_tags_before_last_save: () -> String? + + def include_tags_change_to_be_saved: () -> Array[String?]? + + def include_tags_in_database: () -> String? + + def saved_change_to_include_tags: () -> Array[String?]? + + def saved_change_to_include_tags?: () -> bool + + def will_save_change_to_include_tags?: () -> bool + + def restore_include_tags!: () -> void + + def clear_include_tags_change: () -> void + + def exclude_tags: () -> String? + + def exclude_tags=: (String?) -> String? + + def exclude_tags?: () -> bool + + def exclude_tags_changed?: () -> bool + + def exclude_tags_change: () -> [ String?, String? ] + + def exclude_tags_will_change!: () -> void + + def exclude_tags_was: () -> String? + + def exclude_tags_previously_changed?: () -> bool + + def exclude_tags_previous_change: () -> Array[String?]? + + def exclude_tags_previously_was: () -> String? + + def exclude_tags_before_last_save: () -> String? + + def exclude_tags_change_to_be_saved: () -> Array[String?]? + + def exclude_tags_in_database: () -> String? + + def saved_change_to_exclude_tags: () -> Array[String?]? + + def saved_change_to_exclude_tags?: () -> bool + + def will_save_change_to_exclude_tags?: () -> bool + + def restore_exclude_tags!: () -> void + + def clear_exclude_tags_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + def category_filter_defaults: () -> CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy + def category_filter_defaults=: (CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy | Array[CategoryFilterDefault]) -> (CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy | Array[CategoryFilterDefault]) + def category_filter_default_ids: () -> Array[Integer] + def category_filter_default_ids=: (Array[Integer]) -> Array[Integer] + + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Filter, Integer] + include Enumerable[Filter] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Filter, Integer] + end +end diff --git a/sig/rbs_rails/app/models/flag.rbs b/sig/rbs_rails/app/models/flag.rbs new file mode 100644 index 000000000..588383bc1 --- /dev/null +++ b/sig/rbs_rails/app/models/flag.rbs @@ -0,0 +1,681 @@ +class Flag < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Flag, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def reason: () -> String? + + def reason=: (String?) -> String? + + def reason?: () -> bool + + def reason_changed?: () -> bool + + def reason_change: () -> [ String?, String? ] + + def reason_will_change!: () -> void + + def reason_was: () -> String? + + def reason_previously_changed?: () -> bool + + def reason_previous_change: () -> Array[String?]? + + def reason_previously_was: () -> String? + + def reason_before_last_save: () -> String? + + def reason_change_to_be_saved: () -> Array[String?]? + + def reason_in_database: () -> String? + + def saved_change_to_reason: () -> Array[String?]? + + def saved_change_to_reason?: () -> bool + + def will_save_change_to_reason?: () -> bool + + def restore_reason!: () -> void + + def clear_reason_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def status: () -> String? + + def status=: (String?) -> String? + + def status?: () -> bool + + def status_changed?: () -> bool + + def status_change: () -> [ String?, String? ] + + def status_will_change!: () -> void + + def status_was: () -> String? + + def status_previously_changed?: () -> bool + + def status_previous_change: () -> Array[String?]? + + def status_previously_was: () -> String? + + def status_before_last_save: () -> String? + + def status_change_to_be_saved: () -> Array[String?]? + + def status_in_database: () -> String? + + def saved_change_to_status: () -> Array[String?]? + + def saved_change_to_status?: () -> bool + + def will_save_change_to_status?: () -> bool + + def restore_status!: () -> void + + def clear_status_change: () -> void + + def message: () -> String? + + def message=: (String?) -> String? + + def message?: () -> bool + + def message_changed?: () -> bool + + def message_change: () -> [ String?, String? ] + + def message_will_change!: () -> void + + def message_was: () -> String? + + def message_previously_changed?: () -> bool + + def message_previous_change: () -> Array[String?]? + + def message_previously_was: () -> String? + + def message_before_last_save: () -> String? + + def message_change_to_be_saved: () -> Array[String?]? + + def message_in_database: () -> String? + + def saved_change_to_message: () -> Array[String?]? + + def saved_change_to_message?: () -> bool + + def will_save_change_to_message?: () -> bool + + def restore_message!: () -> void + + def clear_message_change: () -> void + + def handled_by_id: () -> Integer? + + def handled_by_id=: (Integer?) -> Integer? + + def handled_by_id?: () -> bool + + def handled_by_id_changed?: () -> bool + + def handled_by_id_change: () -> [ Integer?, Integer? ] + + def handled_by_id_will_change!: () -> void + + def handled_by_id_was: () -> Integer? + + def handled_by_id_previously_changed?: () -> bool + + def handled_by_id_previous_change: () -> Array[Integer?]? + + def handled_by_id_previously_was: () -> Integer? + + def handled_by_id_before_last_save: () -> Integer? + + def handled_by_id_change_to_be_saved: () -> Array[Integer?]? + + def handled_by_id_in_database: () -> Integer? + + def saved_change_to_handled_by_id: () -> Array[Integer?]? + + def saved_change_to_handled_by_id?: () -> bool + + def will_save_change_to_handled_by_id?: () -> bool + + def restore_handled_by_id!: () -> void + + def clear_handled_by_id_change: () -> void + + def handled_at: () -> ActiveSupport::TimeWithZone? + + def handled_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def handled_at?: () -> bool + + def handled_at_changed?: () -> bool + + def handled_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def handled_at_will_change!: () -> void + + def handled_at_was: () -> ActiveSupport::TimeWithZone? + + def handled_at_previously_changed?: () -> bool + + def handled_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def handled_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def handled_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def handled_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def handled_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_handled_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_handled_at?: () -> bool + + def will_save_change_to_handled_at?: () -> bool + + def restore_handled_at!: () -> void + + def clear_handled_at_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def post_flag_type_id: () -> Integer? + + def post_flag_type_id=: (Integer?) -> Integer? + + def post_flag_type_id?: () -> bool + + def post_flag_type_id_changed?: () -> bool + + def post_flag_type_id_change: () -> [ Integer?, Integer? ] + + def post_flag_type_id_will_change!: () -> void + + def post_flag_type_id_was: () -> Integer? + + def post_flag_type_id_previously_changed?: () -> bool + + def post_flag_type_id_previous_change: () -> Array[Integer?]? + + def post_flag_type_id_previously_was: () -> Integer? + + def post_flag_type_id_before_last_save: () -> Integer? + + def post_flag_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_flag_type_id_in_database: () -> Integer? + + def saved_change_to_post_flag_type_id: () -> Array[Integer?]? + + def saved_change_to_post_flag_type_id?: () -> bool + + def will_save_change_to_post_flag_type_id?: () -> bool + + def restore_post_flag_type_id!: () -> void + + def clear_post_flag_type_id_change: () -> void + + def post_type: () -> String? + + def post_type=: (String?) -> String? + + def post_type?: () -> bool + + def post_type_changed?: () -> bool + + def post_type_change: () -> [ String?, String? ] + + def post_type_will_change!: () -> void + + def post_type_was: () -> String? + + def post_type_previously_changed?: () -> bool + + def post_type_previous_change: () -> Array[String?]? + + def post_type_previously_was: () -> String? + + def post_type_before_last_save: () -> String? + + def post_type_change_to_be_saved: () -> Array[String?]? + + def post_type_in_database: () -> String? + + def saved_change_to_post_type: () -> Array[String?]? + + def saved_change_to_post_type?: () -> bool + + def will_save_change_to_post_type?: () -> bool + + def restore_post_type!: () -> void + + def clear_post_type_change: () -> void + + def escalated: () -> bool + + def escalated=: (bool) -> bool + + def escalated?: () -> bool + + def escalated_changed?: () -> bool + + def escalated_change: () -> [ bool?, bool? ] + + def escalated_will_change!: () -> void + + def escalated_was: () -> bool? + + def escalated_previously_changed?: () -> bool + + def escalated_previous_change: () -> Array[bool?]? + + def escalated_previously_was: () -> bool? + + def escalated_before_last_save: () -> bool? + + def escalated_change_to_be_saved: () -> Array[bool?]? + + def escalated_in_database: () -> bool? + + def saved_change_to_escalated: () -> Array[bool?]? + + def saved_change_to_escalated?: () -> bool + + def will_save_change_to_escalated?: () -> bool + + def restore_escalated!: () -> void + + def clear_escalated_change: () -> void + + def escalated_at: () -> ActiveSupport::TimeWithZone? + + def escalated_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def escalated_at?: () -> bool + + def escalated_at_changed?: () -> bool + + def escalated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def escalated_at_will_change!: () -> void + + def escalated_at_was: () -> ActiveSupport::TimeWithZone? + + def escalated_at_previously_changed?: () -> bool + + def escalated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def escalated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def escalated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def escalated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def escalated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_escalated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_escalated_at?: () -> bool + + def will_save_change_to_escalated_at?: () -> bool + + def restore_escalated_at!: () -> void + + def clear_escalated_at_change: () -> void + + def escalation_comment: () -> String? + + def escalation_comment=: (String?) -> String? + + def escalation_comment?: () -> bool + + def escalation_comment_changed?: () -> bool + + def escalation_comment_change: () -> [ String?, String? ] + + def escalation_comment_will_change!: () -> void + + def escalation_comment_was: () -> String? + + def escalation_comment_previously_changed?: () -> bool + + def escalation_comment_previous_change: () -> Array[String?]? + + def escalation_comment_previously_was: () -> String? + + def escalation_comment_before_last_save: () -> String? + + def escalation_comment_change_to_be_saved: () -> Array[String?]? + + def escalation_comment_in_database: () -> String? + + def saved_change_to_escalation_comment: () -> Array[String?]? + + def saved_change_to_escalation_comment?: () -> bool + + def will_save_change_to_escalation_comment?: () -> bool + + def restore_escalation_comment!: () -> void + + def clear_escalation_comment_change: () -> void + + def escalated_by_id: () -> Integer? + + def escalated_by_id=: (Integer?) -> Integer? + + def escalated_by_id?: () -> bool + + def escalated_by_id_changed?: () -> bool + + def escalated_by_id_change: () -> [ Integer?, Integer? ] + + def escalated_by_id_will_change!: () -> void + + def escalated_by_id_was: () -> Integer? + + def escalated_by_id_previously_changed?: () -> bool + + def escalated_by_id_previous_change: () -> Array[Integer?]? + + def escalated_by_id_previously_was: () -> Integer? + + def escalated_by_id_before_last_save: () -> Integer? + + def escalated_by_id_change_to_be_saved: () -> Array[Integer?]? + + def escalated_by_id_in_database: () -> Integer? + + def saved_change_to_escalated_by_id: () -> Array[Integer?]? + + def saved_change_to_escalated_by_id?: () -> bool + + def will_save_change_to_escalated_by_id?: () -> bool + + def restore_escalated_by_id!: () -> void + + def clear_escalated_by_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> untyped + def post=: (untyped?) -> untyped? + def reload_post: () -> untyped? + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def handled_by: () -> User? + def handled_by=: (User?) -> User? + def reload_handled_by: () -> User? + def build_handled_by: (untyped) -> User + def create_handled_by: (untyped) -> User + def create_handled_by!: (untyped) -> User + def post_flag_type: () -> PostFlagType? + def post_flag_type=: (PostFlagType?) -> PostFlagType? + def reload_post_flag_type: () -> PostFlagType? + def build_post_flag_type: (untyped) -> PostFlagType + def create_post_flag_type: (untyped) -> PostFlagType + def create_post_flag_type!: (untyped) -> PostFlagType + def escalated_by: () -> User? + def escalated_by=: (User?) -> User? + def reload_escalated_by: () -> User? + def build_escalated_by: (untyped) -> User + def create_escalated_by: (untyped) -> User + def create_escalated_by!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.handled: () -> ActiveRecord_Relation + def self.unhandled: () -> ActiveRecord_Relation + def self.confidential: () -> ActiveRecord_Relation + def self.not_confidential: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def handled: () -> ActiveRecord_Relation + + def unhandled: () -> ActiveRecord_Relation + + def confidential: () -> ActiveRecord_Relation + + def not_confidential: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Flag, Integer] + include Enumerable[Flag] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Flag, Integer] + end +end diff --git a/sig/rbs_rails/app/models/habtm_before_tags.rbs b/sig/rbs_rails/app/models/habtm_before_tags.rbs new file mode 100644 index 000000000..2fe50a82b --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_before_tags.rbs @@ -0,0 +1,110 @@ +class SuggestedEdit < ::ApplicationRecord + class HABTM_BeforeTags < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[SuggestedEdit::HABTM_BeforeTags, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def suggested_edit_id: () -> Integer + + def suggested_edit_id=: (Integer) -> Integer + + def suggested_edit_id?: () -> bool + + def suggested_edit_id_changed?: () -> bool + + def suggested_edit_id_change: () -> [ Integer?, Integer? ] + + def suggested_edit_id_will_change!: () -> void + + def suggested_edit_id_was: () -> Integer? + + def suggested_edit_id_previously_changed?: () -> bool + + def suggested_edit_id_previous_change: () -> Array[Integer?]? + + def suggested_edit_id_previously_was: () -> Integer? + + def suggested_edit_id_before_last_save: () -> Integer? + + def suggested_edit_id_change_to_be_saved: () -> Array[Integer?]? + + def suggested_edit_id_in_database: () -> Integer? + + def saved_change_to_suggested_edit_id: () -> Array[Integer?]? + + def saved_change_to_suggested_edit_id?: () -> bool + + def will_save_change_to_suggested_edit_id?: () -> bool + + def restore_suggested_edit_id!: () -> void + + def clear_suggested_edit_id_change: () -> void + + def tag_id: () -> Integer + + def tag_id=: (Integer) -> Integer + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> SuggestedEdit? + def left_side=: (SuggestedEdit?) -> SuggestedEdit? + def reload_left_side: () -> SuggestedEdit? + def build_left_side: (untyped) -> SuggestedEdit + def create_left_side: (untyped) -> SuggestedEdit + def create_left_side!: (untyped) -> SuggestedEdit + def before_tag: () -> Tag? + def before_tag=: (Tag?) -> Tag? + def reload_before_tag: () -> Tag? + def build_before_tag: (untyped) -> Tag + def create_before_tag: (untyped) -> Tag + def create_before_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit::HABTM_BeforeTags, top] + include Enumerable[SuggestedEdit::HABTM_BeforeTags] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit::HABTM_BeforeTags, top] + end + end +end diff --git a/sig/rbs_rails/app/models/habtm_moderator_tags.rbs b/sig/rbs_rails/app/models/habtm_moderator_tags.rbs new file mode 100644 index 000000000..f204e2116 --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_moderator_tags.rbs @@ -0,0 +1,110 @@ +class Category < ::ApplicationRecord + class HABTM_ModeratorTags < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[Category::HABTM_ModeratorTags, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> Category? + def left_side=: (Category?) -> Category? + def reload_left_side: () -> Category? + def build_left_side: (untyped) -> Category + def create_left_side: (untyped) -> Category + def create_left_side!: (untyped) -> Category + def moderator_tag: () -> Tag? + def moderator_tag=: (Tag?) -> Tag? + def reload_moderator_tag: () -> Tag? + def build_moderator_tag: (untyped) -> Tag + def create_moderator_tag: (untyped) -> Tag + def create_moderator_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_ModeratorTags, top] + include Enumerable[Category::HABTM_ModeratorTags] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_ModeratorTags, top] + end + end +end diff --git a/sig/rbs_rails/app/models/habtm_posts.rbs b/sig/rbs_rails/app/models/habtm_posts.rbs new file mode 100644 index 000000000..68e9420e1 --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_posts.rbs @@ -0,0 +1,110 @@ +class Tag < ::ApplicationRecord + class HABTM_Posts < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[Tag::HABTM_Posts, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> Tag? + def left_side=: (Tag?) -> Tag? + def reload_left_side: () -> Tag? + def build_left_side: (untyped) -> Tag + def create_left_side: (untyped) -> Tag + def create_left_side!: (untyped) -> Tag + def post: () -> Post? + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Tag::HABTM_Posts, top] + include Enumerable[Tag::HABTM_Posts] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Tag::HABTM_Posts, top] + end + end +end diff --git a/sig/rbs_rails/app/models/habtm_required_tags.rbs b/sig/rbs_rails/app/models/habtm_required_tags.rbs new file mode 100644 index 000000000..32604ebd9 --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_required_tags.rbs @@ -0,0 +1,110 @@ +class Category < ::ApplicationRecord + class HABTM_RequiredTags < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[Category::HABTM_RequiredTags, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> Category? + def left_side=: (Category?) -> Category? + def reload_left_side: () -> Category? + def build_left_side: (untyped) -> Category + def create_left_side: (untyped) -> Category + def create_left_side!: (untyped) -> Category + def required_tag: () -> Tag? + def required_tag=: (Tag?) -> Tag? + def reload_required_tag: () -> Tag? + def build_required_tag: (untyped) -> Tag + def create_required_tag: (untyped) -> Tag + def create_required_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_RequiredTags, top] + include Enumerable[Category::HABTM_RequiredTags] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_RequiredTags, top] + end + end +end diff --git a/sig/rbs_rails/app/models/habtm_tags.rbs b/sig/rbs_rails/app/models/habtm_tags.rbs new file mode 100644 index 000000000..c5b9a4574 --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_tags.rbs @@ -0,0 +1,110 @@ +class SuggestedEdit < ::ApplicationRecord + class HABTM_Tags < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[SuggestedEdit::HABTM_Tags, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def suggested_edit_id: () -> Integer + + def suggested_edit_id=: (Integer) -> Integer + + def suggested_edit_id?: () -> bool + + def suggested_edit_id_changed?: () -> bool + + def suggested_edit_id_change: () -> [ Integer?, Integer? ] + + def suggested_edit_id_will_change!: () -> void + + def suggested_edit_id_was: () -> Integer? + + def suggested_edit_id_previously_changed?: () -> bool + + def suggested_edit_id_previous_change: () -> Array[Integer?]? + + def suggested_edit_id_previously_was: () -> Integer? + + def suggested_edit_id_before_last_save: () -> Integer? + + def suggested_edit_id_change_to_be_saved: () -> Array[Integer?]? + + def suggested_edit_id_in_database: () -> Integer? + + def saved_change_to_suggested_edit_id: () -> Array[Integer?]? + + def saved_change_to_suggested_edit_id?: () -> bool + + def will_save_change_to_suggested_edit_id?: () -> bool + + def restore_suggested_edit_id!: () -> void + + def clear_suggested_edit_id_change: () -> void + + def tag_id: () -> Integer + + def tag_id=: (Integer) -> Integer + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> SuggestedEdit? + def left_side=: (SuggestedEdit?) -> SuggestedEdit? + def reload_left_side: () -> SuggestedEdit? + def build_left_side: (untyped) -> SuggestedEdit + def create_left_side: (untyped) -> SuggestedEdit + def create_left_side!: (untyped) -> SuggestedEdit + def tag: () -> Tag? + def tag=: (Tag?) -> Tag? + def reload_tag: () -> Tag? + def build_tag: (untyped) -> Tag + def create_tag: (untyped) -> Tag + def create_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit::HABTM_Tags, top] + include Enumerable[SuggestedEdit::HABTM_Tags] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit::HABTM_Tags, top] + end + end +end diff --git a/sig/rbs_rails/app/models/habtm_topic_tags.rbs b/sig/rbs_rails/app/models/habtm_topic_tags.rbs new file mode 100644 index 000000000..976ddaf0a --- /dev/null +++ b/sig/rbs_rails/app/models/habtm_topic_tags.rbs @@ -0,0 +1,110 @@ +class Category < ::ApplicationRecord + class HABTM_TopicTags < ::ActiveRecord::Base + extend _ActiveRecord_Relation_ClassMethods[Category::HABTM_TopicTags, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + end + include GeneratedAttributeMethods + + def left_side: () -> Category? + def left_side=: (Category?) -> Category? + def reload_left_side: () -> Category? + def build_left_side: (untyped) -> Category + def create_left_side: (untyped) -> Category + def create_left_side!: (untyped) -> Category + def topic_tag: () -> Tag? + def topic_tag=: (Tag?) -> Tag? + def reload_topic_tag: () -> Tag? + def build_topic_tag: (untyped) -> Tag + def create_topic_tag: (untyped) -> Tag + def create_topic_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_TopicTags, top] + include Enumerable[Category::HABTM_TopicTags] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Category::HABTM_TopicTags, top] + end + end +end diff --git a/sig/rbs_rails/app/models/help_doc.rbs b/sig/rbs_rails/app/models/help_doc.rbs new file mode 100644 index 000000000..73c63d793 --- /dev/null +++ b/sig/rbs_rails/app/models/help_doc.rbs @@ -0,0 +1,1574 @@ +class HelpDoc < ::Post + extend _ActiveRecord_Relation_ClassMethods[HelpDoc, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[HelpDoc, Integer] + include Enumerable[HelpDoc] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[HelpDoc, Integer] + end +end diff --git a/sig/rbs_rails/app/models/license.rbs b/sig/rbs_rails/app/models/license.rbs new file mode 100644 index 000000000..d2a1b9e18 --- /dev/null +++ b/sig/rbs_rails/app/models/license.rbs @@ -0,0 +1,360 @@ +class License < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[License, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def url: () -> String? + + def url=: (String?) -> String? + + def url?: () -> bool + + def url_changed?: () -> bool + + def url_change: () -> [ String?, String? ] + + def url_will_change!: () -> void + + def url_was: () -> String? + + def url_previously_changed?: () -> bool + + def url_previous_change: () -> Array[String?]? + + def url_previously_was: () -> String? + + def url_before_last_save: () -> String? + + def url_change_to_be_saved: () -> Array[String?]? + + def url_in_database: () -> String? + + def saved_change_to_url: () -> Array[String?]? + + def saved_change_to_url?: () -> bool + + def will_save_change_to_url?: () -> bool + + def restore_url!: () -> void + + def clear_url_change: () -> void + + def default: () -> bool? + + def default=: (bool?) -> bool? + + def default?: () -> bool + + def default_changed?: () -> bool + + def default_change: () -> [ bool?, bool? ] + + def default_will_change!: () -> void + + def default_was: () -> bool? + + def default_previously_changed?: () -> bool + + def default_previous_change: () -> Array[bool?]? + + def default_previously_was: () -> bool? + + def default_before_last_save: () -> bool? + + def default_change_to_be_saved: () -> Array[bool?]? + + def default_in_database: () -> bool? + + def saved_change_to_default: () -> Array[bool?]? + + def saved_change_to_default?: () -> bool + + def will_save_change_to_default?: () -> bool + + def restore_default!: () -> void + + def clear_default_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def enabled: () -> bool? + + def enabled=: (bool?) -> bool? + + def enabled?: () -> bool + + def enabled_changed?: () -> bool + + def enabled_change: () -> [ bool?, bool? ] + + def enabled_will_change!: () -> void + + def enabled_was: () -> bool? + + def enabled_previously_changed?: () -> bool + + def enabled_previous_change: () -> Array[bool?]? + + def enabled_previously_was: () -> bool? + + def enabled_before_last_save: () -> bool? + + def enabled_change_to_be_saved: () -> Array[bool?]? + + def enabled_in_database: () -> bool? + + def saved_change_to_enabled: () -> Array[bool?]? + + def saved_change_to_enabled?: () -> bool + + def will_save_change_to_enabled?: () -> bool + + def restore_enabled!: () -> void + + def clear_enabled_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.enabled: () -> ActiveRecord_Relation + def self.disabled: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def enabled: () -> ActiveRecord_Relation + + def disabled: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[License, Integer] + include Enumerable[License] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[License, Integer] + end +end diff --git a/sig/rbs_rails/app/models/micro_auth/app.rbs b/sig/rbs_rails/app/models/micro_auth/app.rbs new file mode 100644 index 000000000..3f7545400 --- /dev/null +++ b/sig/rbs_rails/app/models/micro_auth/app.rbs @@ -0,0 +1,550 @@ +module MicroAuth + class App < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[MicroAuth::App, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def app_id: () -> String? + + def app_id=: (String?) -> String? + + def app_id?: () -> bool + + def app_id_changed?: () -> bool + + def app_id_change: () -> [ String?, String? ] + + def app_id_will_change!: () -> void + + def app_id_was: () -> String? + + def app_id_previously_changed?: () -> bool + + def app_id_previous_change: () -> Array[String?]? + + def app_id_previously_was: () -> String? + + def app_id_before_last_save: () -> String? + + def app_id_change_to_be_saved: () -> Array[String?]? + + def app_id_in_database: () -> String? + + def saved_change_to_app_id: () -> Array[String?]? + + def saved_change_to_app_id?: () -> bool + + def will_save_change_to_app_id?: () -> bool + + def restore_app_id!: () -> void + + def clear_app_id_change: () -> void + + def public_key: () -> String? + + def public_key=: (String?) -> String? + + def public_key?: () -> bool + + def public_key_changed?: () -> bool + + def public_key_change: () -> [ String?, String? ] + + def public_key_will_change!: () -> void + + def public_key_was: () -> String? + + def public_key_previously_changed?: () -> bool + + def public_key_previous_change: () -> Array[String?]? + + def public_key_previously_was: () -> String? + + def public_key_before_last_save: () -> String? + + def public_key_change_to_be_saved: () -> Array[String?]? + + def public_key_in_database: () -> String? + + def saved_change_to_public_key: () -> Array[String?]? + + def saved_change_to_public_key?: () -> bool + + def will_save_change_to_public_key?: () -> bool + + def restore_public_key!: () -> void + + def clear_public_key_change: () -> void + + def secret_key: () -> String? + + def secret_key=: (String?) -> String? + + def secret_key?: () -> bool + + def secret_key_changed?: () -> bool + + def secret_key_change: () -> [ String?, String? ] + + def secret_key_will_change!: () -> void + + def secret_key_was: () -> String? + + def secret_key_previously_changed?: () -> bool + + def secret_key_previous_change: () -> Array[String?]? + + def secret_key_previously_was: () -> String? + + def secret_key_before_last_save: () -> String? + + def secret_key_change_to_be_saved: () -> Array[String?]? + + def secret_key_in_database: () -> String? + + def saved_change_to_secret_key: () -> Array[String?]? + + def saved_change_to_secret_key?: () -> bool + + def will_save_change_to_secret_key?: () -> bool + + def restore_secret_key!: () -> void + + def clear_secret_key_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def auth_domain: () -> String? + + def auth_domain=: (String?) -> String? + + def auth_domain?: () -> bool + + def auth_domain_changed?: () -> bool + + def auth_domain_change: () -> [ String?, String? ] + + def auth_domain_will_change!: () -> void + + def auth_domain_was: () -> String? + + def auth_domain_previously_changed?: () -> bool + + def auth_domain_previous_change: () -> Array[String?]? + + def auth_domain_previously_was: () -> String? + + def auth_domain_before_last_save: () -> String? + + def auth_domain_change_to_be_saved: () -> Array[String?]? + + def auth_domain_in_database: () -> String? + + def saved_change_to_auth_domain: () -> Array[String?]? + + def saved_change_to_auth_domain?: () -> bool + + def will_save_change_to_auth_domain?: () -> bool + + def restore_auth_domain!: () -> void + + def clear_auth_domain_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def active: () -> bool + + def active=: (bool) -> bool + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def deactivated_by_id: () -> Integer? + + def deactivated_by_id=: (Integer?) -> Integer? + + def deactivated_by_id?: () -> bool + + def deactivated_by_id_changed?: () -> bool + + def deactivated_by_id_change: () -> [ Integer?, Integer? ] + + def deactivated_by_id_will_change!: () -> void + + def deactivated_by_id_was: () -> Integer? + + def deactivated_by_id_previously_changed?: () -> bool + + def deactivated_by_id_previous_change: () -> Array[Integer?]? + + def deactivated_by_id_previously_was: () -> Integer? + + def deactivated_by_id_before_last_save: () -> Integer? + + def deactivated_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deactivated_by_id_in_database: () -> Integer? + + def saved_change_to_deactivated_by_id: () -> Array[Integer?]? + + def saved_change_to_deactivated_by_id?: () -> bool + + def will_save_change_to_deactivated_by_id?: () -> bool + + def restore_deactivated_by_id!: () -> void + + def clear_deactivated_by_id_change: () -> void + + def deactivated_at: () -> ActiveSupport::TimeWithZone? + + def deactivated_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deactivated_at?: () -> bool + + def deactivated_at_changed?: () -> bool + + def deactivated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deactivated_at_will_change!: () -> void + + def deactivated_at_was: () -> ActiveSupport::TimeWithZone? + + def deactivated_at_previously_changed?: () -> bool + + def deactivated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deactivated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deactivated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deactivated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deactivated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deactivated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deactivated_at?: () -> bool + + def will_save_change_to_deactivated_at?: () -> bool + + def restore_deactivated_at!: () -> void + + def clear_deactivated_at_change: () -> void + + def deactivate_comment: () -> String? + + def deactivate_comment=: (String?) -> String? + + def deactivate_comment?: () -> bool + + def deactivate_comment_changed?: () -> bool + + def deactivate_comment_change: () -> [ String?, String? ] + + def deactivate_comment_will_change!: () -> void + + def deactivate_comment_was: () -> String? + + def deactivate_comment_previously_changed?: () -> bool + + def deactivate_comment_previous_change: () -> Array[String?]? + + def deactivate_comment_previously_was: () -> String? + + def deactivate_comment_before_last_save: () -> String? + + def deactivate_comment_change_to_be_saved: () -> Array[String?]? + + def deactivate_comment_in_database: () -> String? + + def saved_change_to_deactivate_comment: () -> Array[String?]? + + def saved_change_to_deactivate_comment?: () -> bool + + def will_save_change_to_deactivate_comment?: () -> bool + + def restore_deactivate_comment!: () -> void + + def clear_deactivate_comment_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + def tokens: () -> MicroAuth::Token::ActiveRecord_Associations_CollectionProxy + def tokens=: (MicroAuth::Token::ActiveRecord_Associations_CollectionProxy | Array[MicroAuth::Token]) -> (MicroAuth::Token::ActiveRecord_Associations_CollectionProxy | Array[MicroAuth::Token]) + def token_ids: () -> Array[Integer] + def token_ids=: (Array[Integer]) -> Array[Integer] + def users: () -> User::ActiveRecord_Associations_CollectionProxy + def users=: (User::ActiveRecord_Associations_CollectionProxy | Array[User]) -> (User::ActiveRecord_Associations_CollectionProxy | Array[User]) + def user_ids: () -> Array[Integer] + def user_ids=: (Array[Integer]) -> Array[Integer] + + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def deactivated_by: () -> User? + def deactivated_by=: (User?) -> User? + def reload_deactivated_by: () -> User? + def build_deactivated_by: (untyped) -> User + def create_deactivated_by: (untyped) -> User + def create_deactivated_by!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[MicroAuth::App, Integer] + include Enumerable[MicroAuth::App] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[MicroAuth::App, Integer] + end + end +end diff --git a/sig/rbs_rails/app/models/micro_auth/token.rbs b/sig/rbs_rails/app/models/micro_auth/token.rbs new file mode 100644 index 000000000..90b1841ff --- /dev/null +++ b/sig/rbs_rails/app/models/micro_auth/token.rbs @@ -0,0 +1,437 @@ +module MicroAuth + class Token < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[MicroAuth::Token, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def app_id: () -> Integer? + + def app_id=: (Integer?) -> Integer? + + def app_id?: () -> bool + + def app_id_changed?: () -> bool + + def app_id_change: () -> [ Integer?, Integer? ] + + def app_id_will_change!: () -> void + + def app_id_was: () -> Integer? + + def app_id_previously_changed?: () -> bool + + def app_id_previous_change: () -> Array[Integer?]? + + def app_id_previously_was: () -> Integer? + + def app_id_before_last_save: () -> Integer? + + def app_id_change_to_be_saved: () -> Array[Integer?]? + + def app_id_in_database: () -> Integer? + + def saved_change_to_app_id: () -> Array[Integer?]? + + def saved_change_to_app_id?: () -> bool + + def will_save_change_to_app_id?: () -> bool + + def restore_app_id!: () -> void + + def clear_app_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def token: () -> String? + + def token=: (String?) -> String? + + def token?: () -> bool + + def token_changed?: () -> bool + + def token_change: () -> [ String?, String? ] + + def token_will_change!: () -> void + + def token_was: () -> String? + + def token_previously_changed?: () -> bool + + def token_previous_change: () -> Array[String?]? + + def token_previously_was: () -> String? + + def token_before_last_save: () -> String? + + def token_change_to_be_saved: () -> Array[String?]? + + def token_in_database: () -> String? + + def saved_change_to_token: () -> Array[String?]? + + def saved_change_to_token?: () -> bool + + def will_save_change_to_token?: () -> bool + + def restore_token!: () -> void + + def clear_token_change: () -> void + + def expires_at: () -> ActiveSupport::TimeWithZone? + + def expires_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def expires_at?: () -> bool + + def expires_at_changed?: () -> bool + + def expires_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def expires_at_will_change!: () -> void + + def expires_at_was: () -> ActiveSupport::TimeWithZone? + + def expires_at_previously_changed?: () -> bool + + def expires_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def expires_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def expires_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def expires_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def expires_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_expires_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_expires_at?: () -> bool + + def will_save_change_to_expires_at?: () -> bool + + def restore_expires_at!: () -> void + + def clear_expires_at_change: () -> void + + def scope: () -> String? + + def scope=: (String?) -> String? + + def scope?: () -> bool + + def scope_changed?: () -> bool + + def scope_change: () -> [ String?, String? ] + + def scope_will_change!: () -> void + + def scope_was: () -> String? + + def scope_previously_changed?: () -> bool + + def scope_previous_change: () -> Array[String?]? + + def scope_previously_was: () -> String? + + def scope_before_last_save: () -> String? + + def scope_change_to_be_saved: () -> Array[String?]? + + def scope_in_database: () -> String? + + def saved_change_to_scope: () -> Array[String?]? + + def saved_change_to_scope?: () -> bool + + def will_save_change_to_scope?: () -> bool + + def restore_scope!: () -> void + + def clear_scope_change: () -> void + + def code: () -> String? + + def code=: (String?) -> String? + + def code?: () -> bool + + def code_changed?: () -> bool + + def code_change: () -> [ String?, String? ] + + def code_will_change!: () -> void + + def code_was: () -> String? + + def code_previously_changed?: () -> bool + + def code_previous_change: () -> Array[String?]? + + def code_previously_was: () -> String? + + def code_before_last_save: () -> String? + + def code_change_to_be_saved: () -> Array[String?]? + + def code_in_database: () -> String? + + def saved_change_to_code: () -> Array[String?]? + + def saved_change_to_code?: () -> bool + + def will_save_change_to_code?: () -> bool + + def restore_code!: () -> void + + def clear_code_change: () -> void + + def code_expires_at: () -> ActiveSupport::TimeWithZone? + + def code_expires_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def code_expires_at?: () -> bool + + def code_expires_at_changed?: () -> bool + + def code_expires_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def code_expires_at_will_change!: () -> void + + def code_expires_at_was: () -> ActiveSupport::TimeWithZone? + + def code_expires_at_previously_changed?: () -> bool + + def code_expires_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def code_expires_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def code_expires_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def code_expires_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def code_expires_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_code_expires_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_code_expires_at?: () -> bool + + def will_save_change_to_code_expires_at?: () -> bool + + def restore_code_expires_at!: () -> void + + def clear_code_expires_at_change: () -> void + + def redirect_uri: () -> String? + + def redirect_uri=: (String?) -> String? + + def redirect_uri?: () -> bool + + def redirect_uri_changed?: () -> bool + + def redirect_uri_change: () -> [ String?, String? ] + + def redirect_uri_will_change!: () -> void + + def redirect_uri_was: () -> String? + + def redirect_uri_previously_changed?: () -> bool + + def redirect_uri_previous_change: () -> Array[String?]? + + def redirect_uri_previously_was: () -> String? + + def redirect_uri_before_last_save: () -> String? + + def redirect_uri_change_to_be_saved: () -> Array[String?]? + + def redirect_uri_in_database: () -> String? + + def saved_change_to_redirect_uri: () -> Array[String?]? + + def saved_change_to_redirect_uri?: () -> bool + + def will_save_change_to_redirect_uri?: () -> bool + + def restore_redirect_uri!: () -> void + + def clear_redirect_uri_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def app: () -> MicroAuth::App + def app=: (MicroAuth::App?) -> MicroAuth::App? + def reload_app: () -> MicroAuth::App? + def build_app: (untyped) -> MicroAuth::App + def create_app: (untyped) -> MicroAuth::App + def create_app!: (untyped) -> MicroAuth::App + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.active: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def active: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[MicroAuth::Token, Integer] + include Enumerable[MicroAuth::Token] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[MicroAuth::Token, Integer] + end + end +end diff --git a/sig/rbs_rails/app/models/mod_warning.rbs b/sig/rbs_rails/app/models/mod_warning.rbs new file mode 100644 index 000000000..0c76f8fe4 --- /dev/null +++ b/sig/rbs_rails/app/models/mod_warning.rbs @@ -0,0 +1,396 @@ +class ModWarning < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[ModWarning, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_user_id: () -> Integer? + + def community_user_id=: (Integer?) -> Integer? + + def community_user_id?: () -> bool + + def community_user_id_changed?: () -> bool + + def community_user_id_change: () -> [ Integer?, Integer? ] + + def community_user_id_will_change!: () -> void + + def community_user_id_was: () -> Integer? + + def community_user_id_previously_changed?: () -> bool + + def community_user_id_previous_change: () -> Array[Integer?]? + + def community_user_id_previously_was: () -> Integer? + + def community_user_id_before_last_save: () -> Integer? + + def community_user_id_change_to_be_saved: () -> Array[Integer?]? + + def community_user_id_in_database: () -> Integer? + + def saved_change_to_community_user_id: () -> Array[Integer?]? + + def saved_change_to_community_user_id?: () -> bool + + def will_save_change_to_community_user_id?: () -> bool + + def restore_community_user_id!: () -> void + + def clear_community_user_id_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def is_suspension: () -> bool? + + def is_suspension=: (bool?) -> bool? + + def is_suspension?: () -> bool + + def is_suspension_changed?: () -> bool + + def is_suspension_change: () -> [ bool?, bool? ] + + def is_suspension_will_change!: () -> void + + def is_suspension_was: () -> bool? + + def is_suspension_previously_changed?: () -> bool + + def is_suspension_previous_change: () -> Array[bool?]? + + def is_suspension_previously_was: () -> bool? + + def is_suspension_before_last_save: () -> bool? + + def is_suspension_change_to_be_saved: () -> Array[bool?]? + + def is_suspension_in_database: () -> bool? + + def saved_change_to_is_suspension: () -> Array[bool?]? + + def saved_change_to_is_suspension?: () -> bool + + def will_save_change_to_is_suspension?: () -> bool + + def restore_is_suspension!: () -> void + + def clear_is_suspension_change: () -> void + + def suspension_end: () -> ActiveSupport::TimeWithZone? + + def suspension_end=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def suspension_end?: () -> bool + + def suspension_end_changed?: () -> bool + + def suspension_end_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def suspension_end_will_change!: () -> void + + def suspension_end_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_previously_changed?: () -> bool + + def suspension_end_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_previously_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_before_last_save: () -> ActiveSupport::TimeWithZone? + + def suspension_end_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_suspension_end: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_suspension_end?: () -> bool + + def will_save_change_to_suspension_end?: () -> bool + + def restore_suspension_end!: () -> void + + def clear_suspension_end_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def author_id: () -> Integer? + + def author_id=: (Integer?) -> Integer? + + def author_id?: () -> bool + + def author_id_changed?: () -> bool + + def author_id_change: () -> [ Integer?, Integer? ] + + def author_id_will_change!: () -> void + + def author_id_was: () -> Integer? + + def author_id_previously_changed?: () -> bool + + def author_id_previous_change: () -> Array[Integer?]? + + def author_id_previously_was: () -> Integer? + + def author_id_before_last_save: () -> Integer? + + def author_id_change_to_be_saved: () -> Array[Integer?]? + + def author_id_in_database: () -> Integer? + + def saved_change_to_author_id: () -> Array[Integer?]? + + def saved_change_to_author_id?: () -> bool + + def will_save_change_to_author_id?: () -> bool + + def restore_author_id!: () -> void + + def clear_author_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def read: () -> bool? + + def read=: (bool?) -> bool? + + def read?: () -> bool + + def read_changed?: () -> bool + + def read_change: () -> [ bool?, bool? ] + + def read_will_change!: () -> void + + def read_was: () -> bool? + + def read_previously_changed?: () -> bool + + def read_previous_change: () -> Array[bool?]? + + def read_previously_was: () -> bool? + + def read_before_last_save: () -> bool? + + def read_change_to_be_saved: () -> Array[bool?]? + + def read_in_database: () -> bool? + + def saved_change_to_read: () -> Array[bool?]? + + def saved_change_to_read?: () -> bool + + def will_save_change_to_read?: () -> bool + + def restore_read!: () -> void + + def clear_read_change: () -> void + end + include GeneratedAttributeMethods + + def community_user: () -> CommunityUser + def community_user=: (CommunityUser?) -> CommunityUser? + def reload_community_user: () -> CommunityUser? + def build_community_user: (untyped) -> CommunityUser + def create_community_user: (untyped) -> CommunityUser + def create_community_user!: (untyped) -> CommunityUser + def author: () -> User + def author=: (User?) -> User? + def reload_author: () -> User? + def build_author: (untyped) -> User + def create_author: (untyped) -> User + def create_author!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ModWarning, Integer] + include Enumerable[ModWarning] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ModWarning, Integer] + end +end diff --git a/sig/rbs_rails/app/models/notification.rbs b/sig/rbs_rails/app/models/notification.rbs new file mode 100644 index 000000000..88d2249ae --- /dev/null +++ b/sig/rbs_rails/app/models/notification.rbs @@ -0,0 +1,324 @@ +class Notification < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Notification, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def content: () -> String? + + def content=: (String?) -> String? + + def content?: () -> bool + + def content_changed?: () -> bool + + def content_change: () -> [ String?, String? ] + + def content_will_change!: () -> void + + def content_was: () -> String? + + def content_previously_changed?: () -> bool + + def content_previous_change: () -> Array[String?]? + + def content_previously_was: () -> String? + + def content_before_last_save: () -> String? + + def content_change_to_be_saved: () -> Array[String?]? + + def content_in_database: () -> String? + + def saved_change_to_content: () -> Array[String?]? + + def saved_change_to_content?: () -> bool + + def will_save_change_to_content?: () -> bool + + def restore_content!: () -> void + + def clear_content_change: () -> void + + def link: () -> String? + + def link=: (String?) -> String? + + def link?: () -> bool + + def link_changed?: () -> bool + + def link_change: () -> [ String?, String? ] + + def link_will_change!: () -> void + + def link_was: () -> String? + + def link_previously_changed?: () -> bool + + def link_previous_change: () -> Array[String?]? + + def link_previously_was: () -> String? + + def link_before_last_save: () -> String? + + def link_change_to_be_saved: () -> Array[String?]? + + def link_in_database: () -> String? + + def saved_change_to_link: () -> Array[String?]? + + def saved_change_to_link?: () -> bool + + def will_save_change_to_link?: () -> bool + + def restore_link!: () -> void + + def clear_link_change: () -> void + + def is_read: () -> bool? + + def is_read=: (bool?) -> bool? + + def is_read?: () -> bool + + def is_read_changed?: () -> bool + + def is_read_change: () -> [ bool?, bool? ] + + def is_read_will_change!: () -> void + + def is_read_was: () -> bool? + + def is_read_previously_changed?: () -> bool + + def is_read_previous_change: () -> Array[bool?]? + + def is_read_previously_was: () -> bool? + + def is_read_before_last_save: () -> bool? + + def is_read_change_to_be_saved: () -> Array[bool?]? + + def is_read_in_database: () -> bool? + + def saved_change_to_is_read: () -> Array[bool?]? + + def saved_change_to_is_read?: () -> bool + + def will_save_change_to_is_read?: () -> bool + + def restore_is_read!: () -> void + + def clear_is_read_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Notification, Integer] + include Enumerable[Notification] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Notification, Integer] + end +end diff --git a/sig/rbs_rails/app/models/pinned_link.rbs b/sig/rbs_rails/app/models/pinned_link.rbs new file mode 100644 index 000000000..bc6c30c3f --- /dev/null +++ b/sig/rbs_rails/app/models/pinned_link.rbs @@ -0,0 +1,396 @@ +class PinnedLink < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PinnedLink, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def label: () -> String? + + def label=: (String?) -> String? + + def label?: () -> bool + + def label_changed?: () -> bool + + def label_change: () -> [ String?, String? ] + + def label_will_change!: () -> void + + def label_was: () -> String? + + def label_previously_changed?: () -> bool + + def label_previous_change: () -> Array[String?]? + + def label_previously_was: () -> String? + + def label_before_last_save: () -> String? + + def label_change_to_be_saved: () -> Array[String?]? + + def label_in_database: () -> String? + + def saved_change_to_label: () -> Array[String?]? + + def saved_change_to_label?: () -> bool + + def will_save_change_to_label?: () -> bool + + def restore_label!: () -> void + + def clear_label_change: () -> void + + def link: () -> String? + + def link=: (String?) -> String? + + def link?: () -> bool + + def link_changed?: () -> bool + + def link_change: () -> [ String?, String? ] + + def link_will_change!: () -> void + + def link_was: () -> String? + + def link_previously_changed?: () -> bool + + def link_previous_change: () -> Array[String?]? + + def link_previously_was: () -> String? + + def link_before_last_save: () -> String? + + def link_change_to_be_saved: () -> Array[String?]? + + def link_in_database: () -> String? + + def saved_change_to_link: () -> Array[String?]? + + def saved_change_to_link?: () -> bool + + def will_save_change_to_link?: () -> bool + + def restore_link!: () -> void + + def clear_link_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def shown_after: () -> ActiveSupport::TimeWithZone? + + def shown_after=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def shown_after?: () -> bool + + def shown_after_changed?: () -> bool + + def shown_after_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def shown_after_will_change!: () -> void + + def shown_after_was: () -> ActiveSupport::TimeWithZone? + + def shown_after_previously_changed?: () -> bool + + def shown_after_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def shown_after_previously_was: () -> ActiveSupport::TimeWithZone? + + def shown_after_before_last_save: () -> ActiveSupport::TimeWithZone? + + def shown_after_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def shown_after_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_shown_after: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_shown_after?: () -> bool + + def will_save_change_to_shown_after?: () -> bool + + def restore_shown_after!: () -> void + + def clear_shown_after_change: () -> void + + def shown_before: () -> ActiveSupport::TimeWithZone? + + def shown_before=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def shown_before?: () -> bool + + def shown_before_changed?: () -> bool + + def shown_before_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def shown_before_will_change!: () -> void + + def shown_before_was: () -> ActiveSupport::TimeWithZone? + + def shown_before_previously_changed?: () -> bool + + def shown_before_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def shown_before_previously_was: () -> ActiveSupport::TimeWithZone? + + def shown_before_before_last_save: () -> ActiveSupport::TimeWithZone? + + def shown_before_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def shown_before_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_shown_before: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_shown_before?: () -> bool + + def will_save_change_to_shown_before?: () -> bool + + def restore_shown_before!: () -> void + + def clear_shown_before_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community? + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PinnedLink, Integer] + include Enumerable[PinnedLink] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PinnedLink, Integer] + end +end diff --git a/sig/rbs_rails/app/models/policy_doc.rbs b/sig/rbs_rails/app/models/policy_doc.rbs new file mode 100644 index 000000000..cabc1ca97 --- /dev/null +++ b/sig/rbs_rails/app/models/policy_doc.rbs @@ -0,0 +1,1574 @@ +class PolicyDoc < ::Post + extend _ActiveRecord_Relation_ClassMethods[PolicyDoc, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PolicyDoc, Integer] + include Enumerable[PolicyDoc] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PolicyDoc, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post.rbs b/sig/rbs_rails/app/models/post.rbs new file mode 100644 index 000000000..e8aea2723 --- /dev/null +++ b/sig/rbs_rails/app/models/post.rbs @@ -0,0 +1,1593 @@ +class Post < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Post, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + + # Manually added + def meta?: () -> bool + def reassign_user: (User) -> void + def tag_set: () -> TagSet + + # Auto generated + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.undeleted: () -> ActiveRecord_Relation + def self.deleted: () -> ActiveRecord_Relation + def self.qa_only: () -> ActiveRecord_Relation + def self.list_includes: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def undeleted: () -> ActiveRecord_Relation + + def deleted: () -> ActiveRecord_Relation + + def qa_only: () -> ActiveRecord_Relation + + def list_includes: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Post, Integer] + include Enumerable[Post] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Post, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post_flag_type.rbs b/sig/rbs_rails/app/models/post_flag_type.rbs new file mode 100644 index 000000000..9a95849d9 --- /dev/null +++ b/sig/rbs_rails/app/models/post_flag_type.rbs @@ -0,0 +1,402 @@ +class PostFlagType < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostFlagType, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def confidential: () -> bool? + + def confidential=: (bool?) -> bool? + + def confidential?: () -> bool + + def confidential_changed?: () -> bool + + def confidential_change: () -> [ bool?, bool? ] + + def confidential_will_change!: () -> void + + def confidential_was: () -> bool? + + def confidential_previously_changed?: () -> bool + + def confidential_previous_change: () -> Array[bool?]? + + def confidential_previously_was: () -> bool? + + def confidential_before_last_save: () -> bool? + + def confidential_change_to_be_saved: () -> Array[bool?]? + + def confidential_in_database: () -> bool? + + def saved_change_to_confidential: () -> Array[bool?]? + + def saved_change_to_confidential?: () -> bool + + def will_save_change_to_confidential?: () -> bool + + def restore_confidential!: () -> void + + def clear_confidential_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def post_type_id: () -> Integer? + + def post_type_id=: (Integer?) -> Integer? + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def requires_details: () -> bool + + def requires_details=: (bool) -> bool + + def requires_details?: () -> bool + + def requires_details_changed?: () -> bool + + def requires_details_change: () -> [ bool?, bool? ] + + def requires_details_will_change!: () -> void + + def requires_details_was: () -> bool? + + def requires_details_previously_changed?: () -> bool + + def requires_details_previous_change: () -> Array[bool?]? + + def requires_details_previously_was: () -> bool? + + def requires_details_before_last_save: () -> bool? + + def requires_details_change_to_be_saved: () -> Array[bool?]? + + def requires_details_in_database: () -> bool? + + def saved_change_to_requires_details: () -> Array[bool?]? + + def saved_change_to_requires_details?: () -> bool + + def will_save_change_to_requires_details?: () -> bool + + def restore_requires_details!: () -> void + + def clear_requires_details_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post_type: () -> PostType? + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.not_confidential: () -> ActiveRecord_Relation + def self.confidential: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def not_confidential: () -> ActiveRecord_Relation + + def confidential: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostFlagType, Integer] + include Enumerable[PostFlagType] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostFlagType, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post_history.rbs b/sig/rbs_rails/app/models/post_history.rbs new file mode 100644 index 000000000..2e408acc1 --- /dev/null +++ b/sig/rbs_rails/app/models/post_history.rbs @@ -0,0 +1,632 @@ +class PostHistory < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostHistory, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def post_history_type_id: () -> Integer? + + def post_history_type_id=: (Integer?) -> Integer? + + def post_history_type_id?: () -> bool + + def post_history_type_id_changed?: () -> bool + + def post_history_type_id_change: () -> [ Integer?, Integer? ] + + def post_history_type_id_will_change!: () -> void + + def post_history_type_id_was: () -> Integer? + + def post_history_type_id_previously_changed?: () -> bool + + def post_history_type_id_previous_change: () -> Array[Integer?]? + + def post_history_type_id_previously_was: () -> Integer? + + def post_history_type_id_before_last_save: () -> Integer? + + def post_history_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_history_type_id_in_database: () -> Integer? + + def saved_change_to_post_history_type_id: () -> Array[Integer?]? + + def saved_change_to_post_history_type_id?: () -> bool + + def will_save_change_to_post_history_type_id?: () -> bool + + def restore_post_history_type_id!: () -> void + + def clear_post_history_type_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def before_state: () -> String? + + def before_state=: (String?) -> String? + + def before_state?: () -> bool + + def before_state_changed?: () -> bool + + def before_state_change: () -> [ String?, String? ] + + def before_state_will_change!: () -> void + + def before_state_was: () -> String? + + def before_state_previously_changed?: () -> bool + + def before_state_previous_change: () -> Array[String?]? + + def before_state_previously_was: () -> String? + + def before_state_before_last_save: () -> String? + + def before_state_change_to_be_saved: () -> Array[String?]? + + def before_state_in_database: () -> String? + + def saved_change_to_before_state: () -> Array[String?]? + + def saved_change_to_before_state?: () -> bool + + def will_save_change_to_before_state?: () -> bool + + def restore_before_state!: () -> void + + def clear_before_state_change: () -> void + + def after_state: () -> String? + + def after_state=: (String?) -> String? + + def after_state?: () -> bool + + def after_state_changed?: () -> bool + + def after_state_change: () -> [ String?, String? ] + + def after_state_will_change!: () -> void + + def after_state_was: () -> String? + + def after_state_previously_changed?: () -> bool + + def after_state_previous_change: () -> Array[String?]? + + def after_state_previously_was: () -> String? + + def after_state_before_last_save: () -> String? + + def after_state_change_to_be_saved: () -> Array[String?]? + + def after_state_in_database: () -> String? + + def saved_change_to_after_state: () -> Array[String?]? + + def saved_change_to_after_state?: () -> bool + + def will_save_change_to_after_state?: () -> bool + + def restore_after_state!: () -> void + + def clear_after_state_change: () -> void + + def comment: () -> String? + + def comment=: (String?) -> String? + + def comment?: () -> bool + + def comment_changed?: () -> bool + + def comment_change: () -> [ String?, String? ] + + def comment_will_change!: () -> void + + def comment_was: () -> String? + + def comment_previously_changed?: () -> bool + + def comment_previous_change: () -> Array[String?]? + + def comment_previously_was: () -> String? + + def comment_before_last_save: () -> String? + + def comment_change_to_be_saved: () -> Array[String?]? + + def comment_in_database: () -> String? + + def saved_change_to_comment: () -> Array[String?]? + + def saved_change_to_comment?: () -> bool + + def will_save_change_to_comment?: () -> bool + + def restore_comment!: () -> void + + def clear_comment_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def before_title: () -> String? + + def before_title=: (String?) -> String? + + def before_title?: () -> bool + + def before_title_changed?: () -> bool + + def before_title_change: () -> [ String?, String? ] + + def before_title_will_change!: () -> void + + def before_title_was: () -> String? + + def before_title_previously_changed?: () -> bool + + def before_title_previous_change: () -> Array[String?]? + + def before_title_previously_was: () -> String? + + def before_title_before_last_save: () -> String? + + def before_title_change_to_be_saved: () -> Array[String?]? + + def before_title_in_database: () -> String? + + def saved_change_to_before_title: () -> Array[String?]? + + def saved_change_to_before_title?: () -> bool + + def will_save_change_to_before_title?: () -> bool + + def restore_before_title!: () -> void + + def clear_before_title_change: () -> void + + def after_title: () -> String? + + def after_title=: (String?) -> String? + + def after_title?: () -> bool + + def after_title_changed?: () -> bool + + def after_title_change: () -> [ String?, String? ] + + def after_title_will_change!: () -> void + + def after_title_was: () -> String? + + def after_title_previously_changed?: () -> bool + + def after_title_previous_change: () -> Array[String?]? + + def after_title_previously_was: () -> String? + + def after_title_before_last_save: () -> String? + + def after_title_change_to_be_saved: () -> Array[String?]? + + def after_title_in_database: () -> String? + + def saved_change_to_after_title: () -> Array[String?]? + + def saved_change_to_after_title?: () -> bool + + def will_save_change_to_after_title?: () -> bool + + def restore_after_title!: () -> void + + def clear_after_title_change: () -> void + + def hidden: () -> bool + + def hidden=: (bool) -> bool + + def hidden?: () -> bool + + def hidden_changed?: () -> bool + + def hidden_change: () -> [ bool?, bool? ] + + def hidden_will_change!: () -> void + + def hidden_was: () -> bool? + + def hidden_previously_changed?: () -> bool + + def hidden_previous_change: () -> Array[bool?]? + + def hidden_previously_was: () -> bool? + + def hidden_before_last_save: () -> bool? + + def hidden_change_to_be_saved: () -> Array[bool?]? + + def hidden_in_database: () -> bool? + + def saved_change_to_hidden: () -> Array[bool?]? + + def saved_change_to_hidden?: () -> bool + + def will_save_change_to_hidden?: () -> bool + + def restore_hidden!: () -> void + + def clear_hidden_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def reverted_with_id: () -> Integer? + + def reverted_with_id=: (Integer?) -> Integer? + + def reverted_with_id?: () -> bool + + def reverted_with_id_changed?: () -> bool + + def reverted_with_id_change: () -> [ Integer?, Integer? ] + + def reverted_with_id_will_change!: () -> void + + def reverted_with_id_was: () -> Integer? + + def reverted_with_id_previously_changed?: () -> bool + + def reverted_with_id_previous_change: () -> Array[Integer?]? + + def reverted_with_id_previously_was: () -> Integer? + + def reverted_with_id_before_last_save: () -> Integer? + + def reverted_with_id_change_to_be_saved: () -> Array[Integer?]? + + def reverted_with_id_in_database: () -> Integer? + + def saved_change_to_reverted_with_id: () -> Array[Integer?]? + + def saved_change_to_reverted_with_id?: () -> bool + + def will_save_change_to_reverted_with_id?: () -> bool + + def restore_reverted_with_id!: () -> void + + def clear_reverted_with_id_change: () -> void + end + include GeneratedAttributeMethods + def post_history_tags: () -> PostHistoryTag::ActiveRecord_Associations_CollectionProxy + def post_history_tags=: (PostHistoryTag::ActiveRecord_Associations_CollectionProxy | Array[PostHistoryTag]) -> (PostHistoryTag::ActiveRecord_Associations_CollectionProxy | Array[PostHistoryTag]) + def post_history_tag_ids: () -> Array[Integer] + def post_history_tag_ids=: (Array[Integer]) -> Array[Integer] + def tags: () -> Tag::ActiveRecord_Associations_CollectionProxy + def tags=: (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) -> (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) + def tag_ids: () -> Array[Integer] + def tag_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def post_history_type: () -> PostHistoryType + def post_history_type=: (PostHistoryType?) -> PostHistoryType? + def reload_post_history_type: () -> PostHistoryType? + def build_post_history_type: (untyped) -> PostHistoryType + def create_post_history_type: (untyped) -> PostHistoryType + def create_post_history_type!: (untyped) -> PostHistoryType + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistory, Integer] + include Enumerable[PostHistory] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistory, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post_history_tag.rbs b/sig/rbs_rails/app/models/post_history_tag.rbs new file mode 100644 index 000000000..e19682209 --- /dev/null +++ b/sig/rbs_rails/app/models/post_history_tag.rbs @@ -0,0 +1,252 @@ +class PostHistoryTag < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostHistoryTag, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def post_history_id: () -> Integer? + + def post_history_id=: (Integer?) -> Integer? + + def post_history_id?: () -> bool + + def post_history_id_changed?: () -> bool + + def post_history_id_change: () -> [ Integer?, Integer? ] + + def post_history_id_will_change!: () -> void + + def post_history_id_was: () -> Integer? + + def post_history_id_previously_changed?: () -> bool + + def post_history_id_previous_change: () -> Array[Integer?]? + + def post_history_id_previously_was: () -> Integer? + + def post_history_id_before_last_save: () -> Integer? + + def post_history_id_change_to_be_saved: () -> Array[Integer?]? + + def post_history_id_in_database: () -> Integer? + + def saved_change_to_post_history_id: () -> Array[Integer?]? + + def saved_change_to_post_history_id?: () -> bool + + def will_save_change_to_post_history_id?: () -> bool + + def restore_post_history_id!: () -> void + + def clear_post_history_id_change: () -> void + + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + + def relationship: () -> String? + + def relationship=: (String?) -> String? + + def relationship?: () -> bool + + def relationship_changed?: () -> bool + + def relationship_change: () -> [ String?, String? ] + + def relationship_will_change!: () -> void + + def relationship_was: () -> String? + + def relationship_previously_changed?: () -> bool + + def relationship_previous_change: () -> Array[String?]? + + def relationship_previously_was: () -> String? + + def relationship_before_last_save: () -> String? + + def relationship_change_to_be_saved: () -> Array[String?]? + + def relationship_in_database: () -> String? + + def saved_change_to_relationship: () -> Array[String?]? + + def saved_change_to_relationship?: () -> bool + + def will_save_change_to_relationship?: () -> bool + + def restore_relationship!: () -> void + + def clear_relationship_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def post_history: () -> PostHistory + def post_history=: (PostHistory?) -> PostHistory? + def reload_post_history: () -> PostHistory? + def build_post_history: (untyped) -> PostHistory + def create_post_history: (untyped) -> PostHistory + def create_post_history!: (untyped) -> PostHistory + def tag: () -> Tag + def tag=: (Tag?) -> Tag? + def reload_tag: () -> Tag? + def build_tag: (untyped) -> Tag + def create_tag: (untyped) -> Tag + def create_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistoryTag, Integer] + include Enumerable[PostHistoryTag] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistoryTag, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post_history_type.rbs b/sig/rbs_rails/app/models/post_history_type.rbs new file mode 100644 index 000000000..0c10e6f2e --- /dev/null +++ b/sig/rbs_rails/app/models/post_history_type.rbs @@ -0,0 +1,208 @@ +class PostHistoryType < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostHistoryType, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistoryType, Integer] + include Enumerable[PostHistoryType] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostHistoryType, Integer] + end +end diff --git a/sig/rbs_rails/app/models/post_type.rbs b/sig/rbs_rails/app/models/post_type.rbs new file mode 100644 index 000000000..0229a1cd1 --- /dev/null +++ b/sig/rbs_rails/app/models/post_type.rbs @@ -0,0 +1,654 @@ +class PostType < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostType, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def has_answers: () -> bool + + def has_answers=: (bool) -> bool + + def has_answers?: () -> bool + + def has_answers_changed?: () -> bool + + def has_answers_change: () -> [ bool?, bool? ] + + def has_answers_will_change!: () -> void + + def has_answers_was: () -> bool? + + def has_answers_previously_changed?: () -> bool + + def has_answers_previous_change: () -> Array[bool?]? + + def has_answers_previously_was: () -> bool? + + def has_answers_before_last_save: () -> bool? + + def has_answers_change_to_be_saved: () -> Array[bool?]? + + def has_answers_in_database: () -> bool? + + def saved_change_to_has_answers: () -> Array[bool?]? + + def saved_change_to_has_answers?: () -> bool + + def will_save_change_to_has_answers?: () -> bool + + def restore_has_answers!: () -> void + + def clear_has_answers_change: () -> void + + def has_votes: () -> bool + + def has_votes=: (bool) -> bool + + def has_votes?: () -> bool + + def has_votes_changed?: () -> bool + + def has_votes_change: () -> [ bool?, bool? ] + + def has_votes_will_change!: () -> void + + def has_votes_was: () -> bool? + + def has_votes_previously_changed?: () -> bool + + def has_votes_previous_change: () -> Array[bool?]? + + def has_votes_previously_was: () -> bool? + + def has_votes_before_last_save: () -> bool? + + def has_votes_change_to_be_saved: () -> Array[bool?]? + + def has_votes_in_database: () -> bool? + + def saved_change_to_has_votes: () -> Array[bool?]? + + def saved_change_to_has_votes?: () -> bool + + def will_save_change_to_has_votes?: () -> bool + + def restore_has_votes!: () -> void + + def clear_has_votes_change: () -> void + + def has_tags: () -> bool + + def has_tags=: (bool) -> bool + + def has_tags?: () -> bool + + def has_tags_changed?: () -> bool + + def has_tags_change: () -> [ bool?, bool? ] + + def has_tags_will_change!: () -> void + + def has_tags_was: () -> bool? + + def has_tags_previously_changed?: () -> bool + + def has_tags_previous_change: () -> Array[bool?]? + + def has_tags_previously_was: () -> bool? + + def has_tags_before_last_save: () -> bool? + + def has_tags_change_to_be_saved: () -> Array[bool?]? + + def has_tags_in_database: () -> bool? + + def saved_change_to_has_tags: () -> Array[bool?]? + + def saved_change_to_has_tags?: () -> bool + + def will_save_change_to_has_tags?: () -> bool + + def restore_has_tags!: () -> void + + def clear_has_tags_change: () -> void + + def has_parent: () -> bool + + def has_parent=: (bool) -> bool + + def has_parent?: () -> bool + + def has_parent_changed?: () -> bool + + def has_parent_change: () -> [ bool?, bool? ] + + def has_parent_will_change!: () -> void + + def has_parent_was: () -> bool? + + def has_parent_previously_changed?: () -> bool + + def has_parent_previous_change: () -> Array[bool?]? + + def has_parent_previously_was: () -> bool? + + def has_parent_before_last_save: () -> bool? + + def has_parent_change_to_be_saved: () -> Array[bool?]? + + def has_parent_in_database: () -> bool? + + def saved_change_to_has_parent: () -> Array[bool?]? + + def saved_change_to_has_parent?: () -> bool + + def will_save_change_to_has_parent?: () -> bool + + def restore_has_parent!: () -> void + + def clear_has_parent_change: () -> void + + def has_category: () -> bool + + def has_category=: (bool) -> bool + + def has_category?: () -> bool + + def has_category_changed?: () -> bool + + def has_category_change: () -> [ bool?, bool? ] + + def has_category_will_change!: () -> void + + def has_category_was: () -> bool? + + def has_category_previously_changed?: () -> bool + + def has_category_previous_change: () -> Array[bool?]? + + def has_category_previously_was: () -> bool? + + def has_category_before_last_save: () -> bool? + + def has_category_change_to_be_saved: () -> Array[bool?]? + + def has_category_in_database: () -> bool? + + def saved_change_to_has_category: () -> Array[bool?]? + + def saved_change_to_has_category?: () -> bool + + def will_save_change_to_has_category?: () -> bool + + def restore_has_category!: () -> void + + def clear_has_category_change: () -> void + + def has_license: () -> bool + + def has_license=: (bool) -> bool + + def has_license?: () -> bool + + def has_license_changed?: () -> bool + + def has_license_change: () -> [ bool?, bool? ] + + def has_license_will_change!: () -> void + + def has_license_was: () -> bool? + + def has_license_previously_changed?: () -> bool + + def has_license_previous_change: () -> Array[bool?]? + + def has_license_previously_was: () -> bool? + + def has_license_before_last_save: () -> bool? + + def has_license_change_to_be_saved: () -> Array[bool?]? + + def has_license_in_database: () -> bool? + + def saved_change_to_has_license: () -> Array[bool?]? + + def saved_change_to_has_license?: () -> bool + + def will_save_change_to_has_license?: () -> bool + + def restore_has_license!: () -> void + + def clear_has_license_change: () -> void + + def is_public_editable: () -> bool + + def is_public_editable=: (bool) -> bool + + def is_public_editable?: () -> bool + + def is_public_editable_changed?: () -> bool + + def is_public_editable_change: () -> [ bool?, bool? ] + + def is_public_editable_will_change!: () -> void + + def is_public_editable_was: () -> bool? + + def is_public_editable_previously_changed?: () -> bool + + def is_public_editable_previous_change: () -> Array[bool?]? + + def is_public_editable_previously_was: () -> bool? + + def is_public_editable_before_last_save: () -> bool? + + def is_public_editable_change_to_be_saved: () -> Array[bool?]? + + def is_public_editable_in_database: () -> bool? + + def saved_change_to_is_public_editable: () -> Array[bool?]? + + def saved_change_to_is_public_editable?: () -> bool + + def will_save_change_to_is_public_editable?: () -> bool + + def restore_is_public_editable!: () -> void + + def clear_is_public_editable_change: () -> void + + def is_closeable: () -> bool + + def is_closeable=: (bool) -> bool + + def is_closeable?: () -> bool + + def is_closeable_changed?: () -> bool + + def is_closeable_change: () -> [ bool?, bool? ] + + def is_closeable_will_change!: () -> void + + def is_closeable_was: () -> bool? + + def is_closeable_previously_changed?: () -> bool + + def is_closeable_previous_change: () -> Array[bool?]? + + def is_closeable_previously_was: () -> bool? + + def is_closeable_before_last_save: () -> bool? + + def is_closeable_change_to_be_saved: () -> Array[bool?]? + + def is_closeable_in_database: () -> bool? + + def saved_change_to_is_closeable: () -> Array[bool?]? + + def saved_change_to_is_closeable?: () -> bool + + def will_save_change_to_is_closeable?: () -> bool + + def restore_is_closeable!: () -> void + + def clear_is_closeable_change: () -> void + + def is_top_level: () -> bool + + def is_top_level=: (bool) -> bool + + def is_top_level?: () -> bool + + def is_top_level_changed?: () -> bool + + def is_top_level_change: () -> [ bool?, bool? ] + + def is_top_level_will_change!: () -> void + + def is_top_level_was: () -> bool? + + def is_top_level_previously_changed?: () -> bool + + def is_top_level_previous_change: () -> Array[bool?]? + + def is_top_level_previously_was: () -> bool? + + def is_top_level_before_last_save: () -> bool? + + def is_top_level_change_to_be_saved: () -> Array[bool?]? + + def is_top_level_in_database: () -> bool? + + def saved_change_to_is_top_level: () -> Array[bool?]? + + def saved_change_to_is_top_level?: () -> bool + + def will_save_change_to_is_top_level?: () -> bool + + def restore_is_top_level!: () -> void + + def clear_is_top_level_change: () -> void + + def is_freely_editable: () -> bool + + def is_freely_editable=: (bool) -> bool + + def is_freely_editable?: () -> bool + + def is_freely_editable_changed?: () -> bool + + def is_freely_editable_change: () -> [ bool?, bool? ] + + def is_freely_editable_will_change!: () -> void + + def is_freely_editable_was: () -> bool? + + def is_freely_editable_previously_changed?: () -> bool + + def is_freely_editable_previous_change: () -> Array[bool?]? + + def is_freely_editable_previously_was: () -> bool? + + def is_freely_editable_before_last_save: () -> bool? + + def is_freely_editable_change_to_be_saved: () -> Array[bool?]? + + def is_freely_editable_in_database: () -> bool? + + def saved_change_to_is_freely_editable: () -> Array[bool?]? + + def saved_change_to_is_freely_editable?: () -> bool + + def will_save_change_to_is_freely_editable?: () -> bool + + def restore_is_freely_editable!: () -> void + + def clear_is_freely_editable_change: () -> void + + def icon_name: () -> String? + + def icon_name=: (String?) -> String? + + def icon_name?: () -> bool + + def icon_name_changed?: () -> bool + + def icon_name_change: () -> [ String?, String? ] + + def icon_name_will_change!: () -> void + + def icon_name_was: () -> String? + + def icon_name_previously_changed?: () -> bool + + def icon_name_previous_change: () -> Array[String?]? + + def icon_name_previously_was: () -> String? + + def icon_name_before_last_save: () -> String? + + def icon_name_change_to_be_saved: () -> Array[String?]? + + def icon_name_in_database: () -> String? + + def saved_change_to_icon_name: () -> Array[String?]? + + def saved_change_to_icon_name?: () -> bool + + def will_save_change_to_icon_name?: () -> bool + + def restore_icon_name!: () -> void + + def clear_icon_name_change: () -> void + + def answer_type_id: () -> Integer? + + def answer_type_id=: (Integer?) -> Integer? + + def answer_type_id?: () -> bool + + def answer_type_id_changed?: () -> bool + + def answer_type_id_change: () -> [ Integer?, Integer? ] + + def answer_type_id_will_change!: () -> void + + def answer_type_id_was: () -> Integer? + + def answer_type_id_previously_changed?: () -> bool + + def answer_type_id_previous_change: () -> Array[Integer?]? + + def answer_type_id_previously_was: () -> Integer? + + def answer_type_id_before_last_save: () -> Integer? + + def answer_type_id_change_to_be_saved: () -> Array[Integer?]? + + def answer_type_id_in_database: () -> Integer? + + def saved_change_to_answer_type_id: () -> Array[Integer?]? + + def saved_change_to_answer_type_id?: () -> bool + + def will_save_change_to_answer_type_id?: () -> bool + + def restore_answer_type_id!: () -> void + + def clear_answer_type_id_change: () -> void + + def has_reactions: () -> bool? + + def has_reactions=: (bool?) -> bool? + + def has_reactions?: () -> bool + + def has_reactions_changed?: () -> bool + + def has_reactions_change: () -> [ bool?, bool? ] + + def has_reactions_will_change!: () -> void + + def has_reactions_was: () -> bool? + + def has_reactions_previously_changed?: () -> bool + + def has_reactions_previous_change: () -> Array[bool?]? + + def has_reactions_previously_was: () -> bool? + + def has_reactions_before_last_save: () -> bool? + + def has_reactions_change_to_be_saved: () -> Array[bool?]? + + def has_reactions_in_database: () -> bool? + + def saved_change_to_has_reactions: () -> Array[bool?]? + + def saved_change_to_has_reactions?: () -> bool + + def will_save_change_to_has_reactions?: () -> bool + + def restore_has_reactions!: () -> void + + def clear_has_reactions_change: () -> void + + def has_only_specific_reactions: () -> bool? + + def has_only_specific_reactions=: (bool?) -> bool? + + def has_only_specific_reactions?: () -> bool + + def has_only_specific_reactions_changed?: () -> bool + + def has_only_specific_reactions_change: () -> [ bool?, bool? ] + + def has_only_specific_reactions_will_change!: () -> void + + def has_only_specific_reactions_was: () -> bool? + + def has_only_specific_reactions_previously_changed?: () -> bool + + def has_only_specific_reactions_previous_change: () -> Array[bool?]? + + def has_only_specific_reactions_previously_was: () -> bool? + + def has_only_specific_reactions_before_last_save: () -> bool? + + def has_only_specific_reactions_change_to_be_saved: () -> Array[bool?]? + + def has_only_specific_reactions_in_database: () -> bool? + + def saved_change_to_has_only_specific_reactions: () -> Array[bool?]? + + def saved_change_to_has_only_specific_reactions?: () -> bool + + def will_save_change_to_has_only_specific_reactions?: () -> bool + + def restore_has_only_specific_reactions!: () -> void + + def clear_has_only_specific_reactions_change: () -> void + end + include GeneratedAttributeMethods + def posts: () -> Post::ActiveRecord_Associations_CollectionProxy + def posts=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def post_ids: () -> Array[Integer] + def post_ids=: (Array[Integer]) -> Array[Integer] + def category_post_types: () -> CategoryPostType::ActiveRecord_Associations_CollectionProxy + def category_post_types=: (CategoryPostType::ActiveRecord_Associations_CollectionProxy | Array[CategoryPostType]) -> (CategoryPostType::ActiveRecord_Associations_CollectionProxy | Array[CategoryPostType]) + def category_post_type_ids: () -> Array[Integer] + def category_post_type_ids=: (Array[Integer]) -> Array[Integer] + def categories: () -> Category::ActiveRecord_Associations_CollectionProxy + def categories=: (Category::ActiveRecord_Associations_CollectionProxy | Array[Category]) -> (Category::ActiveRecord_Associations_CollectionProxy | Array[Category]) + def category_ids: () -> Array[Integer] + def category_ids=: (Array[Integer]) -> Array[Integer] + + def answer_type: () -> PostType? + def answer_type=: (PostType?) -> PostType? + def reload_answer_type: () -> PostType? + def build_answer_type: (untyped) -> PostType + def create_answer_type: (untyped) -> PostType + def create_answer_type!: (untyped) -> PostType + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostType, Integer] + include Enumerable[PostType] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostType, Integer] + end +end diff --git a/sig/rbs_rails/app/models/posts_tag.rbs b/sig/rbs_rails/app/models/posts_tag.rbs new file mode 100644 index 000000000..ea0f3574a --- /dev/null +++ b/sig/rbs_rails/app/models/posts_tag.rbs @@ -0,0 +1,108 @@ +class PostsTag < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[PostsTag, ActiveRecord_Relation, top] + + module GeneratedAttributeMethods + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + end + include GeneratedAttributeMethods + + def tag: () -> Tag + def tag=: (Tag?) -> Tag? + def reload_tag: () -> Tag? + def build_tag: (untyped) -> Tag + def create_tag: (untyped) -> Tag + def create_tag!: (untyped) -> Tag + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostsTag, top] + include Enumerable[PostsTag] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[PostsTag, top] + end +end diff --git a/sig/rbs_rails/app/models/question.rbs b/sig/rbs_rails/app/models/question.rbs new file mode 100644 index 000000000..591c61bdf --- /dev/null +++ b/sig/rbs_rails/app/models/question.rbs @@ -0,0 +1,1580 @@ +class Question < ::Post + extend _ActiveRecord_Relation_ClassMethods[Question, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def score: () -> BigDecimal + + def score=: (BigDecimal) -> BigDecimal + + def score?: () -> bool + + def score_changed?: () -> bool + + def score_change: () -> [ BigDecimal?, BigDecimal? ] + + def score_will_change!: () -> void + + def score_was: () -> BigDecimal? + + def score_previously_changed?: () -> bool + + def score_previous_change: () -> Array[BigDecimal?]? + + def score_previously_was: () -> BigDecimal? + + def score_before_last_save: () -> BigDecimal? + + def score_change_to_be_saved: () -> Array[BigDecimal?]? + + def score_in_database: () -> BigDecimal? + + def saved_change_to_score: () -> Array[BigDecimal?]? + + def saved_change_to_score?: () -> bool + + def will_save_change_to_score?: () -> bool + + def restore_score!: () -> void + + def clear_score_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def closed: () -> bool + + def closed=: (bool) -> bool + + def closed?: () -> bool + + def closed_changed?: () -> bool + + def closed_change: () -> [ bool?, bool? ] + + def closed_will_change!: () -> void + + def closed_was: () -> bool? + + def closed_previously_changed?: () -> bool + + def closed_previous_change: () -> Array[bool?]? + + def closed_previously_was: () -> bool? + + def closed_before_last_save: () -> bool? + + def closed_change_to_be_saved: () -> Array[bool?]? + + def closed_in_database: () -> bool? + + def saved_change_to_closed: () -> Array[bool?]? + + def saved_change_to_closed?: () -> bool + + def will_save_change_to_closed?: () -> bool + + def restore_closed!: () -> void + + def clear_closed_change: () -> void + + def closed_by_id: () -> Integer? + + def closed_by_id=: (Integer?) -> Integer? + + def closed_by_id?: () -> bool + + def closed_by_id_changed?: () -> bool + + def closed_by_id_change: () -> [ Integer?, Integer? ] + + def closed_by_id_will_change!: () -> void + + def closed_by_id_was: () -> Integer? + + def closed_by_id_previously_changed?: () -> bool + + def closed_by_id_previous_change: () -> Array[Integer?]? + + def closed_by_id_previously_was: () -> Integer? + + def closed_by_id_before_last_save: () -> Integer? + + def closed_by_id_change_to_be_saved: () -> Array[Integer?]? + + def closed_by_id_in_database: () -> Integer? + + def saved_change_to_closed_by_id: () -> Array[Integer?]? + + def saved_change_to_closed_by_id?: () -> bool + + def will_save_change_to_closed_by_id?: () -> bool + + def restore_closed_by_id!: () -> void + + def clear_closed_by_id_change: () -> void + + def closed_at: () -> ActiveSupport::TimeWithZone? + + def closed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def closed_at?: () -> bool + + def closed_at_changed?: () -> bool + + def closed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def closed_at_will_change!: () -> void + + def closed_at_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_previously_changed?: () -> bool + + def closed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def closed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def closed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def closed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_closed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_closed_at?: () -> bool + + def will_save_change_to_closed_at?: () -> bool + + def restore_closed_at!: () -> void + + def clear_closed_at_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_type_id: () -> Integer + + def post_type_id=: (Integer) -> Integer + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def answer_count: () -> Integer + + def answer_count=: (Integer) -> Integer + + def answer_count?: () -> bool + + def answer_count_changed?: () -> bool + + def answer_count_change: () -> [ Integer?, Integer? ] + + def answer_count_will_change!: () -> void + + def answer_count_was: () -> Integer? + + def answer_count_previously_changed?: () -> bool + + def answer_count_previous_change: () -> Array[Integer?]? + + def answer_count_previously_was: () -> Integer? + + def answer_count_before_last_save: () -> Integer? + + def answer_count_change_to_be_saved: () -> Array[Integer?]? + + def answer_count_in_database: () -> Integer? + + def saved_change_to_answer_count: () -> Array[Integer?]? + + def saved_change_to_answer_count?: () -> bool + + def will_save_change_to_answer_count?: () -> bool + + def restore_answer_count!: () -> void + + def clear_answer_count_change: () -> void + + def last_activity: () -> ActiveSupport::TimeWithZone + + def last_activity=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def last_activity?: () -> bool + + def last_activity_changed?: () -> bool + + def last_activity_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_activity_will_change!: () -> void + + def last_activity_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_previously_changed?: () -> bool + + def last_activity_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_activity_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_activity_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_activity_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_activity: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_activity?: () -> bool + + def will_save_change_to_last_activity?: () -> bool + + def restore_last_activity!: () -> void + + def clear_last_activity_change: () -> void + + def att_source: () -> String? + + def att_source=: (String?) -> String? + + def att_source?: () -> bool + + def att_source_changed?: () -> bool + + def att_source_change: () -> [ String?, String? ] + + def att_source_will_change!: () -> void + + def att_source_was: () -> String? + + def att_source_previously_changed?: () -> bool + + def att_source_previous_change: () -> Array[String?]? + + def att_source_previously_was: () -> String? + + def att_source_before_last_save: () -> String? + + def att_source_change_to_be_saved: () -> Array[String?]? + + def att_source_in_database: () -> String? + + def saved_change_to_att_source: () -> Array[String?]? + + def saved_change_to_att_source?: () -> bool + + def will_save_change_to_att_source?: () -> bool + + def restore_att_source!: () -> void + + def clear_att_source_change: () -> void + + def att_license_name: () -> String? + + def att_license_name=: (String?) -> String? + + def att_license_name?: () -> bool + + def att_license_name_changed?: () -> bool + + def att_license_name_change: () -> [ String?, String? ] + + def att_license_name_will_change!: () -> void + + def att_license_name_was: () -> String? + + def att_license_name_previously_changed?: () -> bool + + def att_license_name_previous_change: () -> Array[String?]? + + def att_license_name_previously_was: () -> String? + + def att_license_name_before_last_save: () -> String? + + def att_license_name_change_to_be_saved: () -> Array[String?]? + + def att_license_name_in_database: () -> String? + + def saved_change_to_att_license_name: () -> Array[String?]? + + def saved_change_to_att_license_name?: () -> bool + + def will_save_change_to_att_license_name?: () -> bool + + def restore_att_license_name!: () -> void + + def clear_att_license_name_change: () -> void + + def att_license_link: () -> String? + + def att_license_link=: (String?) -> String? + + def att_license_link?: () -> bool + + def att_license_link_changed?: () -> bool + + def att_license_link_change: () -> [ String?, String? ] + + def att_license_link_will_change!: () -> void + + def att_license_link_was: () -> String? + + def att_license_link_previously_changed?: () -> bool + + def att_license_link_previous_change: () -> Array[String?]? + + def att_license_link_previously_was: () -> String? + + def att_license_link_before_last_save: () -> String? + + def att_license_link_change_to_be_saved: () -> Array[String?]? + + def att_license_link_in_database: () -> String? + + def saved_change_to_att_license_link: () -> Array[String?]? + + def saved_change_to_att_license_link?: () -> bool + + def will_save_change_to_att_license_link?: () -> bool + + def restore_att_license_link!: () -> void + + def clear_att_license_link_change: () -> void + + def doc_slug: () -> String? + + def doc_slug=: (String?) -> String? + + def doc_slug?: () -> bool + + def doc_slug_changed?: () -> bool + + def doc_slug_change: () -> [ String?, String? ] + + def doc_slug_will_change!: () -> void + + def doc_slug_was: () -> String? + + def doc_slug_previously_changed?: () -> bool + + def doc_slug_previous_change: () -> Array[String?]? + + def doc_slug_previously_was: () -> String? + + def doc_slug_before_last_save: () -> String? + + def doc_slug_change_to_be_saved: () -> Array[String?]? + + def doc_slug_in_database: () -> String? + + def saved_change_to_doc_slug: () -> Array[String?]? + + def saved_change_to_doc_slug?: () -> bool + + def will_save_change_to_doc_slug?: () -> bool + + def restore_doc_slug!: () -> void + + def clear_doc_slug_change: () -> void + + def last_activity_by_id: () -> Integer? + + def last_activity_by_id=: (Integer?) -> Integer? + + def last_activity_by_id?: () -> bool + + def last_activity_by_id_changed?: () -> bool + + def last_activity_by_id_change: () -> [ Integer?, Integer? ] + + def last_activity_by_id_will_change!: () -> void + + def last_activity_by_id_was: () -> Integer? + + def last_activity_by_id_previously_changed?: () -> bool + + def last_activity_by_id_previous_change: () -> Array[Integer?]? + + def last_activity_by_id_previously_was: () -> Integer? + + def last_activity_by_id_before_last_save: () -> Integer? + + def last_activity_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_activity_by_id_in_database: () -> Integer? + + def saved_change_to_last_activity_by_id: () -> Array[Integer?]? + + def saved_change_to_last_activity_by_id?: () -> bool + + def will_save_change_to_last_activity_by_id?: () -> bool + + def restore_last_activity_by_id!: () -> void + + def clear_last_activity_by_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def close_reason_id: () -> Integer? + + def close_reason_id=: (Integer?) -> Integer? + + def close_reason_id?: () -> bool + + def close_reason_id_changed?: () -> bool + + def close_reason_id_change: () -> [ Integer?, Integer? ] + + def close_reason_id_will_change!: () -> void + + def close_reason_id_was: () -> Integer? + + def close_reason_id_previously_changed?: () -> bool + + def close_reason_id_previous_change: () -> Array[Integer?]? + + def close_reason_id_previously_was: () -> Integer? + + def close_reason_id_before_last_save: () -> Integer? + + def close_reason_id_change_to_be_saved: () -> Array[Integer?]? + + def close_reason_id_in_database: () -> Integer? + + def saved_change_to_close_reason_id: () -> Array[Integer?]? + + def saved_change_to_close_reason_id?: () -> bool + + def will_save_change_to_close_reason_id?: () -> bool + + def restore_close_reason_id!: () -> void + + def clear_close_reason_id_change: () -> void + + def duplicate_post_id: () -> Integer? + + def duplicate_post_id=: (Integer?) -> Integer? + + def duplicate_post_id?: () -> bool + + def duplicate_post_id_changed?: () -> bool + + def duplicate_post_id_change: () -> [ Integer?, Integer? ] + + def duplicate_post_id_will_change!: () -> void + + def duplicate_post_id_was: () -> Integer? + + def duplicate_post_id_previously_changed?: () -> bool + + def duplicate_post_id_previous_change: () -> Array[Integer?]? + + def duplicate_post_id_previously_was: () -> Integer? + + def duplicate_post_id_before_last_save: () -> Integer? + + def duplicate_post_id_change_to_be_saved: () -> Array[Integer?]? + + def duplicate_post_id_in_database: () -> Integer? + + def saved_change_to_duplicate_post_id: () -> Array[Integer?]? + + def saved_change_to_duplicate_post_id?: () -> bool + + def will_save_change_to_duplicate_post_id?: () -> bool + + def restore_duplicate_post_id!: () -> void + + def clear_duplicate_post_id_change: () -> void + + def category_id: () -> Integer? + + def category_id=: (Integer?) -> Integer? + + def category_id?: () -> bool + + def category_id_changed?: () -> bool + + def category_id_change: () -> [ Integer?, Integer? ] + + def category_id_will_change!: () -> void + + def category_id_was: () -> Integer? + + def category_id_previously_changed?: () -> bool + + def category_id_previous_change: () -> Array[Integer?]? + + def category_id_previously_was: () -> Integer? + + def category_id_before_last_save: () -> Integer? + + def category_id_change_to_be_saved: () -> Array[Integer?]? + + def category_id_in_database: () -> Integer? + + def saved_change_to_category_id: () -> Array[Integer?]? + + def saved_change_to_category_id?: () -> bool + + def will_save_change_to_category_id?: () -> bool + + def restore_category_id!: () -> void + + def clear_category_id_change: () -> void + + def license_id: () -> Integer? + + def license_id=: (Integer?) -> Integer? + + def license_id?: () -> bool + + def license_id_changed?: () -> bool + + def license_id_change: () -> [ Integer?, Integer? ] + + def license_id_will_change!: () -> void + + def license_id_was: () -> Integer? + + def license_id_previously_changed?: () -> bool + + def license_id_previous_change: () -> Array[Integer?]? + + def license_id_previously_was: () -> Integer? + + def license_id_before_last_save: () -> Integer? + + def license_id_change_to_be_saved: () -> Array[Integer?]? + + def license_id_in_database: () -> Integer? + + def saved_change_to_license_id: () -> Array[Integer?]? + + def saved_change_to_license_id?: () -> bool + + def will_save_change_to_license_id?: () -> bool + + def restore_license_id!: () -> void + + def clear_license_id_change: () -> void + + def help_category: () -> String? + + def help_category=: (String?) -> String? + + def help_category?: () -> bool + + def help_category_changed?: () -> bool + + def help_category_change: () -> [ String?, String? ] + + def help_category_will_change!: () -> void + + def help_category_was: () -> String? + + def help_category_previously_changed?: () -> bool + + def help_category_previous_change: () -> Array[String?]? + + def help_category_previously_was: () -> String? + + def help_category_before_last_save: () -> String? + + def help_category_change_to_be_saved: () -> Array[String?]? + + def help_category_in_database: () -> String? + + def saved_change_to_help_category: () -> Array[String?]? + + def saved_change_to_help_category?: () -> bool + + def will_save_change_to_help_category?: () -> bool + + def restore_help_category!: () -> void + + def clear_help_category_change: () -> void + + def help_ordering: () -> Integer? + + def help_ordering=: (Integer?) -> Integer? + + def help_ordering?: () -> bool + + def help_ordering_changed?: () -> bool + + def help_ordering_change: () -> [ Integer?, Integer? ] + + def help_ordering_will_change!: () -> void + + def help_ordering_was: () -> Integer? + + def help_ordering_previously_changed?: () -> bool + + def help_ordering_previous_change: () -> Array[Integer?]? + + def help_ordering_previously_was: () -> Integer? + + def help_ordering_before_last_save: () -> Integer? + + def help_ordering_change_to_be_saved: () -> Array[Integer?]? + + def help_ordering_in_database: () -> Integer? + + def saved_change_to_help_ordering: () -> Array[Integer?]? + + def saved_change_to_help_ordering?: () -> bool + + def will_save_change_to_help_ordering?: () -> bool + + def restore_help_ordering!: () -> void + + def clear_help_ordering_change: () -> void + + def upvote_count: () -> Integer + + def upvote_count=: (Integer) -> Integer + + def upvote_count?: () -> bool + + def upvote_count_changed?: () -> bool + + def upvote_count_change: () -> [ Integer?, Integer? ] + + def upvote_count_will_change!: () -> void + + def upvote_count_was: () -> Integer? + + def upvote_count_previously_changed?: () -> bool + + def upvote_count_previous_change: () -> Array[Integer?]? + + def upvote_count_previously_was: () -> Integer? + + def upvote_count_before_last_save: () -> Integer? + + def upvote_count_change_to_be_saved: () -> Array[Integer?]? + + def upvote_count_in_database: () -> Integer? + + def saved_change_to_upvote_count: () -> Array[Integer?]? + + def saved_change_to_upvote_count?: () -> bool + + def will_save_change_to_upvote_count?: () -> bool + + def restore_upvote_count!: () -> void + + def clear_upvote_count_change: () -> void + + def downvote_count: () -> Integer + + def downvote_count=: (Integer) -> Integer + + def downvote_count?: () -> bool + + def downvote_count_changed?: () -> bool + + def downvote_count_change: () -> [ Integer?, Integer? ] + + def downvote_count_will_change!: () -> void + + def downvote_count_was: () -> Integer? + + def downvote_count_previously_changed?: () -> bool + + def downvote_count_previous_change: () -> Array[Integer?]? + + def downvote_count_previously_was: () -> Integer? + + def downvote_count_before_last_save: () -> Integer? + + def downvote_count_change_to_be_saved: () -> Array[Integer?]? + + def downvote_count_in_database: () -> Integer? + + def saved_change_to_downvote_count: () -> Array[Integer?]? + + def saved_change_to_downvote_count?: () -> bool + + def will_save_change_to_downvote_count?: () -> bool + + def restore_downvote_count!: () -> void + + def clear_downvote_count_change: () -> void + + def comments_disabled: () -> bool? + + def comments_disabled=: (bool?) -> bool? + + def comments_disabled?: () -> bool + + def comments_disabled_changed?: () -> bool + + def comments_disabled_change: () -> [ bool?, bool? ] + + def comments_disabled_will_change!: () -> void + + def comments_disabled_was: () -> bool? + + def comments_disabled_previously_changed?: () -> bool + + def comments_disabled_previous_change: () -> Array[bool?]? + + def comments_disabled_previously_was: () -> bool? + + def comments_disabled_before_last_save: () -> bool? + + def comments_disabled_change_to_be_saved: () -> Array[bool?]? + + def comments_disabled_in_database: () -> bool? + + def saved_change_to_comments_disabled: () -> Array[bool?]? + + def saved_change_to_comments_disabled?: () -> bool + + def will_save_change_to_comments_disabled?: () -> bool + + def restore_comments_disabled!: () -> void + + def clear_comments_disabled_change: () -> void + + def last_edited_at: () -> ActiveSupport::TimeWithZone? + + def last_edited_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_edited_at?: () -> bool + + def last_edited_at_changed?: () -> bool + + def last_edited_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_edited_at_will_change!: () -> void + + def last_edited_at_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_previously_changed?: () -> bool + + def last_edited_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_edited_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_edited_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_edited_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_edited_at?: () -> bool + + def will_save_change_to_last_edited_at?: () -> bool + + def restore_last_edited_at!: () -> void + + def clear_last_edited_at_change: () -> void + + def last_edited_by_id: () -> Integer? + + def last_edited_by_id=: (Integer?) -> Integer? + + def last_edited_by_id?: () -> bool + + def last_edited_by_id_changed?: () -> bool + + def last_edited_by_id_change: () -> [ Integer?, Integer? ] + + def last_edited_by_id_will_change!: () -> void + + def last_edited_by_id_was: () -> Integer? + + def last_edited_by_id_previously_changed?: () -> bool + + def last_edited_by_id_previous_change: () -> Array[Integer?]? + + def last_edited_by_id_previously_was: () -> Integer? + + def last_edited_by_id_before_last_save: () -> Integer? + + def last_edited_by_id_change_to_be_saved: () -> Array[Integer?]? + + def last_edited_by_id_in_database: () -> Integer? + + def saved_change_to_last_edited_by_id: () -> Array[Integer?]? + + def saved_change_to_last_edited_by_id?: () -> bool + + def will_save_change_to_last_edited_by_id?: () -> bool + + def restore_last_edited_by_id!: () -> void + + def clear_last_edited_by_id_change: () -> void + + def locked: () -> bool + + def locked=: (bool) -> bool + + def locked?: () -> bool + + def locked_changed?: () -> bool + + def locked_change: () -> [ bool?, bool? ] + + def locked_will_change!: () -> void + + def locked_was: () -> bool? + + def locked_previously_changed?: () -> bool + + def locked_previous_change: () -> Array[bool?]? + + def locked_previously_was: () -> bool? + + def locked_before_last_save: () -> bool? + + def locked_change_to_be_saved: () -> Array[bool?]? + + def locked_in_database: () -> bool? + + def saved_change_to_locked: () -> Array[bool?]? + + def saved_change_to_locked?: () -> bool + + def will_save_change_to_locked?: () -> bool + + def restore_locked!: () -> void + + def clear_locked_change: () -> void + + def locked_by_id: () -> Integer? + + def locked_by_id=: (Integer?) -> Integer? + + def locked_by_id?: () -> bool + + def locked_by_id_changed?: () -> bool + + def locked_by_id_change: () -> [ Integer?, Integer? ] + + def locked_by_id_will_change!: () -> void + + def locked_by_id_was: () -> Integer? + + def locked_by_id_previously_changed?: () -> bool + + def locked_by_id_previous_change: () -> Array[Integer?]? + + def locked_by_id_previously_was: () -> Integer? + + def locked_by_id_before_last_save: () -> Integer? + + def locked_by_id_change_to_be_saved: () -> Array[Integer?]? + + def locked_by_id_in_database: () -> Integer? + + def saved_change_to_locked_by_id: () -> Array[Integer?]? + + def saved_change_to_locked_by_id?: () -> bool + + def will_save_change_to_locked_by_id?: () -> bool + + def restore_locked_by_id!: () -> void + + def clear_locked_by_id_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def locked_until: () -> ActiveSupport::TimeWithZone? + + def locked_until=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_until?: () -> bool + + def locked_until_changed?: () -> bool + + def locked_until_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_until_will_change!: () -> void + + def locked_until_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_previously_changed?: () -> bool + + def locked_until_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_until_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_until_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_until_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_until: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_until?: () -> bool + + def will_save_change_to_locked_until?: () -> bool + + def restore_locked_until!: () -> void + + def clear_locked_until_change: () -> void + end + include GeneratedAttributeMethods + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_thread_ids: () -> Array[Integer] + def comment_thread_ids=: (Array[Integer]) -> Array[Integer] + def post_histories: () -> PostHistory::ActiveRecord_Associations_CollectionProxy + def post_histories=: (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) -> (PostHistory::ActiveRecord_Associations_CollectionProxy | Array[PostHistory]) + def post_history_ids: () -> Array[Integer] + def post_history_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def children: () -> Post::ActiveRecord_Associations_CollectionProxy + def children=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def reactions: () -> Reaction::ActiveRecord_Associations_CollectionProxy + def reactions=: (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) -> (Reaction::ActiveRecord_Associations_CollectionProxy | Array[Reaction]) + def reaction_ids: () -> Array[Integer] + def reaction_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User? + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post_type: () -> PostType + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def parent: () -> Post? + def parent=: (Post?) -> Post? + def reload_parent: () -> Post? + def build_parent: (untyped) -> Post + def create_parent: (untyped) -> Post + def create_parent!: (untyped) -> Post + def closed_by: () -> User? + def closed_by=: (User?) -> User? + def reload_closed_by: () -> User? + def build_closed_by: (untyped) -> User + def create_closed_by: (untyped) -> User + def create_closed_by!: (untyped) -> User + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + def last_activity_by: () -> User? + def last_activity_by=: (User?) -> User? + def reload_last_activity_by: () -> User? + def build_last_activity_by: (untyped) -> User + def create_last_activity_by: (untyped) -> User + def create_last_activity_by!: (untyped) -> User + def locked_by: () -> User? + def locked_by=: (User?) -> User? + def reload_locked_by: () -> User? + def build_locked_by: (untyped) -> User + def create_locked_by: (untyped) -> User + def create_locked_by!: (untyped) -> User + def last_edited_by: () -> User? + def last_edited_by=: (User?) -> User? + def reload_last_edited_by: () -> User? + def build_last_edited_by: (untyped) -> User + def create_last_edited_by: (untyped) -> User + def create_last_edited_by!: (untyped) -> User + def category: () -> Category? + def category=: (Category?) -> Category? + def reload_category: () -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def license: () -> License? + def license=: (License?) -> License? + def reload_license: () -> License? + def build_license: (untyped) -> License + def create_license: (untyped) -> License + def create_license!: (untyped) -> License + def close_reason: () -> CloseReason? + def close_reason=: (CloseReason?) -> CloseReason? + def reload_close_reason: () -> CloseReason? + def build_close_reason: (untyped) -> CloseReason + def create_close_reason: (untyped) -> CloseReason + def create_close_reason!: (untyped) -> CloseReason + def duplicate_post: () -> Question? + def duplicate_post=: (Question?) -> Question? + def reload_duplicate_post: () -> Question? + def build_duplicate_post: (untyped) -> Question + def create_duplicate_post: (untyped) -> Question + def create_duplicate_post!: (untyped) -> Question + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.meta: () -> ActiveRecord_Relation + def self.main: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def meta: () -> ActiveRecord_Relation + + def main: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Question, Integer] + include Enumerable[Question] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Question, Integer] + end +end diff --git a/sig/rbs_rails/app/models/reaction.rbs b/sig/rbs_rails/app/models/reaction.rbs new file mode 100644 index 000000000..c08fede9e --- /dev/null +++ b/sig/rbs_rails/app/models/reaction.rbs @@ -0,0 +1,300 @@ +class Reaction < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Reaction, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def reaction_type_id: () -> Integer? + + def reaction_type_id=: (Integer?) -> Integer? + + def reaction_type_id?: () -> bool + + def reaction_type_id_changed?: () -> bool + + def reaction_type_id_change: () -> [ Integer?, Integer? ] + + def reaction_type_id_will_change!: () -> void + + def reaction_type_id_was: () -> Integer? + + def reaction_type_id_previously_changed?: () -> bool + + def reaction_type_id_previous_change: () -> Array[Integer?]? + + def reaction_type_id_previously_was: () -> Integer? + + def reaction_type_id_before_last_save: () -> Integer? + + def reaction_type_id_change_to_be_saved: () -> Array[Integer?]? + + def reaction_type_id_in_database: () -> Integer? + + def saved_change_to_reaction_type_id: () -> Array[Integer?]? + + def saved_change_to_reaction_type_id?: () -> bool + + def will_save_change_to_reaction_type_id?: () -> bool + + def restore_reaction_type_id!: () -> void + + def clear_reaction_type_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def comment_id: () -> Integer? + + def comment_id=: (Integer?) -> Integer? + + def comment_id?: () -> bool + + def comment_id_changed?: () -> bool + + def comment_id_change: () -> [ Integer?, Integer? ] + + def comment_id_will_change!: () -> void + + def comment_id_was: () -> Integer? + + def comment_id_previously_changed?: () -> bool + + def comment_id_previous_change: () -> Array[Integer?]? + + def comment_id_previously_was: () -> Integer? + + def comment_id_before_last_save: () -> Integer? + + def comment_id_change_to_be_saved: () -> Array[Integer?]? + + def comment_id_in_database: () -> Integer? + + def saved_change_to_comment_id: () -> Array[Integer?]? + + def saved_change_to_comment_id?: () -> bool + + def will_save_change_to_comment_id?: () -> bool + + def restore_comment_id!: () -> void + + def clear_comment_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def reaction_type: () -> ReactionType + def reaction_type=: (ReactionType?) -> ReactionType? + def reload_reaction_type: () -> ReactionType? + def build_reaction_type: (untyped) -> ReactionType + def create_reaction_type: (untyped) -> ReactionType + def create_reaction_type!: (untyped) -> ReactionType + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def comment: () -> Comment? + def comment=: (Comment?) -> Comment? + def reload_comment: () -> Comment? + def build_comment: (untyped) -> Comment + def create_comment: (untyped) -> Comment + def create_comment!: (untyped) -> Comment + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Reaction, Integer] + include Enumerable[Reaction] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Reaction, Integer] + end +end diff --git a/sig/rbs_rails/app/models/reaction_type.rbs b/sig/rbs_rails/app/models/reaction_type.rbs new file mode 100644 index 000000000..252ab8149 --- /dev/null +++ b/sig/rbs_rails/app/models/reaction_type.rbs @@ -0,0 +1,507 @@ +class ReactionType < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[ReactionType, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def on_post_label: () -> String? + + def on_post_label=: (String?) -> String? + + def on_post_label?: () -> bool + + def on_post_label_changed?: () -> bool + + def on_post_label_change: () -> [ String?, String? ] + + def on_post_label_will_change!: () -> void + + def on_post_label_was: () -> String? + + def on_post_label_previously_changed?: () -> bool + + def on_post_label_previous_change: () -> Array[String?]? + + def on_post_label_previously_was: () -> String? + + def on_post_label_before_last_save: () -> String? + + def on_post_label_change_to_be_saved: () -> Array[String?]? + + def on_post_label_in_database: () -> String? + + def saved_change_to_on_post_label: () -> Array[String?]? + + def saved_change_to_on_post_label?: () -> bool + + def will_save_change_to_on_post_label?: () -> bool + + def restore_on_post_label!: () -> void + + def clear_on_post_label_change: () -> void + + def icon: () -> String? + + def icon=: (String?) -> String? + + def icon?: () -> bool + + def icon_changed?: () -> bool + + def icon_change: () -> [ String?, String? ] + + def icon_will_change!: () -> void + + def icon_was: () -> String? + + def icon_previously_changed?: () -> bool + + def icon_previous_change: () -> Array[String?]? + + def icon_previously_was: () -> String? + + def icon_before_last_save: () -> String? + + def icon_change_to_be_saved: () -> Array[String?]? + + def icon_in_database: () -> String? + + def saved_change_to_icon: () -> Array[String?]? + + def saved_change_to_icon?: () -> bool + + def will_save_change_to_icon?: () -> bool + + def restore_icon!: () -> void + + def clear_icon_change: () -> void + + def color: () -> String? + + def color=: (String?) -> String? + + def color?: () -> bool + + def color_changed?: () -> bool + + def color_change: () -> [ String?, String? ] + + def color_will_change!: () -> void + + def color_was: () -> String? + + def color_previously_changed?: () -> bool + + def color_previous_change: () -> Array[String?]? + + def color_previously_was: () -> String? + + def color_before_last_save: () -> String? + + def color_change_to_be_saved: () -> Array[String?]? + + def color_in_database: () -> String? + + def saved_change_to_color: () -> Array[String?]? + + def saved_change_to_color?: () -> bool + + def will_save_change_to_color?: () -> bool + + def restore_color!: () -> void + + def clear_color_change: () -> void + + def requires_comment: () -> bool? + + def requires_comment=: (bool?) -> bool? + + def requires_comment?: () -> bool + + def requires_comment_changed?: () -> bool + + def requires_comment_change: () -> [ bool?, bool? ] + + def requires_comment_will_change!: () -> void + + def requires_comment_was: () -> bool? + + def requires_comment_previously_changed?: () -> bool + + def requires_comment_previous_change: () -> Array[bool?]? + + def requires_comment_previously_was: () -> bool? + + def requires_comment_before_last_save: () -> bool? + + def requires_comment_change_to_be_saved: () -> Array[bool?]? + + def requires_comment_in_database: () -> bool? + + def saved_change_to_requires_comment: () -> Array[bool?]? + + def saved_change_to_requires_comment?: () -> bool + + def will_save_change_to_requires_comment?: () -> bool + + def restore_requires_comment!: () -> void + + def clear_requires_comment_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def position: () -> Integer? + + def position=: (Integer?) -> Integer? + + def position?: () -> bool + + def position_changed?: () -> bool + + def position_change: () -> [ Integer?, Integer? ] + + def position_will_change!: () -> void + + def position_was: () -> Integer? + + def position_previously_changed?: () -> bool + + def position_previous_change: () -> Array[Integer?]? + + def position_previously_was: () -> Integer? + + def position_before_last_save: () -> Integer? + + def position_change_to_be_saved: () -> Array[Integer?]? + + def position_in_database: () -> Integer? + + def saved_change_to_position: () -> Array[Integer?]? + + def saved_change_to_position?: () -> bool + + def will_save_change_to_position?: () -> bool + + def restore_position!: () -> void + + def clear_position_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def post_type_id: () -> Integer? + + def post_type_id=: (Integer?) -> Integer? + + def post_type_id?: () -> bool + + def post_type_id_changed?: () -> bool + + def post_type_id_change: () -> [ Integer?, Integer? ] + + def post_type_id_will_change!: () -> void + + def post_type_id_was: () -> Integer? + + def post_type_id_previously_changed?: () -> bool + + def post_type_id_previous_change: () -> Array[Integer?]? + + def post_type_id_previously_was: () -> Integer? + + def post_type_id_before_last_save: () -> Integer? + + def post_type_id_change_to_be_saved: () -> Array[Integer?]? + + def post_type_id_in_database: () -> Integer? + + def saved_change_to_post_type_id: () -> Array[Integer?]? + + def saved_change_to_post_type_id?: () -> bool + + def will_save_change_to_post_type_id?: () -> bool + + def restore_post_type_id!: () -> void + + def clear_post_type_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post_type: () -> PostType? + def post_type=: (PostType?) -> PostType? + def reload_post_type: () -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.active: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def active: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ReactionType, Integer] + include Enumerable[ReactionType] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ReactionType, Integer] + end +end diff --git a/sig/rbs_rails/app/models/site_setting.rbs b/sig/rbs_rails/app/models/site_setting.rbs new file mode 100644 index 000000000..8dd0eeacf --- /dev/null +++ b/sig/rbs_rails/app/models/site_setting.rbs @@ -0,0 +1,363 @@ +class SiteSetting < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[SiteSetting, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def value: () -> String? + + def value=: (String?) -> String? + + def value?: () -> bool + + def value_changed?: () -> bool + + def value_change: () -> [ String?, String? ] + + def value_will_change!: () -> void + + def value_was: () -> String? + + def value_previously_changed?: () -> bool + + def value_previous_change: () -> Array[String?]? + + def value_previously_was: () -> String? + + def value_before_last_save: () -> String? + + def value_change_to_be_saved: () -> Array[String?]? + + def value_in_database: () -> String? + + def saved_change_to_value: () -> Array[String?]? + + def saved_change_to_value?: () -> bool + + def will_save_change_to_value?: () -> bool + + def restore_value!: () -> void + + def clear_value_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def value_type: () -> String + + def value_type=: (String) -> String + + def value_type?: () -> bool + + def value_type_changed?: () -> bool + + def value_type_change: () -> [ String?, String? ] + + def value_type_will_change!: () -> void + + def value_type_was: () -> String? + + def value_type_previously_changed?: () -> bool + + def value_type_previous_change: () -> Array[String?]? + + def value_type_previously_was: () -> String? + + def value_type_before_last_save: () -> String? + + def value_type_change_to_be_saved: () -> Array[String?]? + + def value_type_in_database: () -> String? + + def saved_change_to_value_type: () -> Array[String?]? + + def saved_change_to_value_type?: () -> bool + + def will_save_change_to_value_type?: () -> bool + + def restore_value_type!: () -> void + + def clear_value_type_change: () -> void + + def description: () -> String? + + def description=: (String?) -> String? + + def description?: () -> bool + + def description_changed?: () -> bool + + def description_change: () -> [ String?, String? ] + + def description_will_change!: () -> void + + def description_was: () -> String? + + def description_previously_changed?: () -> bool + + def description_previous_change: () -> Array[String?]? + + def description_previously_was: () -> String? + + def description_before_last_save: () -> String? + + def description_change_to_be_saved: () -> Array[String?]? + + def description_in_database: () -> String? + + def saved_change_to_description: () -> Array[String?]? + + def saved_change_to_description?: () -> bool + + def will_save_change_to_description?: () -> bool + + def restore_description!: () -> void + + def clear_description_change: () -> void + + def category: () -> String? + + def category=: (String?) -> String? + + def category?: () -> bool + + def category_changed?: () -> bool + + def category_change: () -> [ String?, String? ] + + def category_will_change!: () -> void + + def category_was: () -> String? + + def category_previously_changed?: () -> bool + + def category_previous_change: () -> Array[String?]? + + def category_previously_was: () -> String? + + def category_before_last_save: () -> String? + + def category_change_to_be_saved: () -> Array[String?]? + + def category_in_database: () -> String? + + def saved_change_to_category: () -> Array[String?]? + + def saved_change_to_category?: () -> bool + + def will_save_change_to_category?: () -> bool + + def restore_category!: () -> void + + def clear_category_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community? + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + def self.for_community_id: (untyped community_id) -> ActiveRecord_Relation + def self.global: () -> ActiveRecord_Relation + def self.priority_order: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def for_community_id: (untyped community_id) -> ActiveRecord_Relation + + def global: () -> ActiveRecord_Relation + + def priority_order: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[SiteSetting, Integer] + include Enumerable[SiteSetting] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[SiteSetting, Integer] + end +end diff --git a/sig/rbs_rails/app/models/sso_profile.rbs b/sig/rbs_rails/app/models/sso_profile.rbs new file mode 100644 index 000000000..ae1f6e64f --- /dev/null +++ b/sig/rbs_rails/app/models/sso_profile.rbs @@ -0,0 +1,138 @@ +class SsoProfile < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[SsoProfile, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def saml_identifier: () -> String + + def saml_identifier=: (String) -> String + + def saml_identifier?: () -> bool + + def saml_identifier_changed?: () -> bool + + def saml_identifier_change: () -> [ String?, String? ] + + def saml_identifier_will_change!: () -> void + + def saml_identifier_was: () -> String? + + def saml_identifier_previously_changed?: () -> bool + + def saml_identifier_previous_change: () -> Array[String?]? + + def saml_identifier_previously_was: () -> String? + + def saml_identifier_before_last_save: () -> String? + + def saml_identifier_change_to_be_saved: () -> Array[String?]? + + def saml_identifier_in_database: () -> String? + + def saved_change_to_saml_identifier: () -> Array[String?]? + + def saved_change_to_saml_identifier?: () -> bool + + def will_save_change_to_saml_identifier?: () -> bool + + def restore_saml_identifier!: () -> void + + def clear_saml_identifier_change: () -> void + + def user_id: () -> Integer + + def user_id=: (Integer) -> Integer + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + end + include GeneratedAttributeMethods + + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[SsoProfile, Integer] + include Enumerable[SsoProfile] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[SsoProfile, Integer] + end +end diff --git a/sig/rbs_rails/app/models/subscription.rbs b/sig/rbs_rails/app/models/subscription.rbs new file mode 100644 index 000000000..7f1a5d22c --- /dev/null +++ b/sig/rbs_rails/app/models/subscription.rbs @@ -0,0 +1,432 @@ +class Subscription < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Subscription, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def type: () -> String + + def type=: (String) -> String + + def type?: () -> bool + + def type_changed?: () -> bool + + def type_change: () -> [ String?, String? ] + + def type_will_change!: () -> void + + def type_was: () -> String? + + def type_previously_changed?: () -> bool + + def type_previous_change: () -> Array[String?]? + + def type_previously_was: () -> String? + + def type_before_last_save: () -> String? + + def type_change_to_be_saved: () -> Array[String?]? + + def type_in_database: () -> String? + + def saved_change_to_type: () -> Array[String?]? + + def saved_change_to_type?: () -> bool + + def will_save_change_to_type?: () -> bool + + def restore_type!: () -> void + + def clear_type_change: () -> void + + def qualifier: () -> String? + + def qualifier=: (String?) -> String? + + def qualifier?: () -> bool + + def qualifier_changed?: () -> bool + + def qualifier_change: () -> [ String?, String? ] + + def qualifier_will_change!: () -> void + + def qualifier_was: () -> String? + + def qualifier_previously_changed?: () -> bool + + def qualifier_previous_change: () -> Array[String?]? + + def qualifier_previously_was: () -> String? + + def qualifier_before_last_save: () -> String? + + def qualifier_change_to_be_saved: () -> Array[String?]? + + def qualifier_in_database: () -> String? + + def saved_change_to_qualifier: () -> Array[String?]? + + def saved_change_to_qualifier?: () -> bool + + def will_save_change_to_qualifier?: () -> bool + + def restore_qualifier!: () -> void + + def clear_qualifier_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def enabled: () -> bool + + def enabled=: (bool) -> bool + + def enabled?: () -> bool + + def enabled_changed?: () -> bool + + def enabled_change: () -> [ bool?, bool? ] + + def enabled_will_change!: () -> void + + def enabled_was: () -> bool? + + def enabled_previously_changed?: () -> bool + + def enabled_previous_change: () -> Array[bool?]? + + def enabled_previously_was: () -> bool? + + def enabled_before_last_save: () -> bool? + + def enabled_change_to_be_saved: () -> Array[bool?]? + + def enabled_in_database: () -> bool? + + def saved_change_to_enabled: () -> Array[bool?]? + + def saved_change_to_enabled?: () -> bool + + def will_save_change_to_enabled?: () -> bool + + def restore_enabled!: () -> void + + def clear_enabled_change: () -> void + + def frequency: () -> Integer + + def frequency=: (Integer) -> Integer + + def frequency?: () -> bool + + def frequency_changed?: () -> bool + + def frequency_change: () -> [ Integer?, Integer? ] + + def frequency_will_change!: () -> void + + def frequency_was: () -> Integer? + + def frequency_previously_changed?: () -> bool + + def frequency_previous_change: () -> Array[Integer?]? + + def frequency_previously_was: () -> Integer? + + def frequency_before_last_save: () -> Integer? + + def frequency_change_to_be_saved: () -> Array[Integer?]? + + def frequency_in_database: () -> Integer? + + def saved_change_to_frequency: () -> Array[Integer?]? + + def saved_change_to_frequency?: () -> bool + + def will_save_change_to_frequency?: () -> bool + + def restore_frequency!: () -> void + + def clear_frequency_change: () -> void + + def last_sent_at: () -> ActiveSupport::TimeWithZone? + + def last_sent_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_sent_at?: () -> bool + + def last_sent_at_changed?: () -> bool + + def last_sent_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_sent_at_will_change!: () -> void + + def last_sent_at_was: () -> ActiveSupport::TimeWithZone? + + def last_sent_at_previously_changed?: () -> bool + + def last_sent_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_sent_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_sent_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_sent_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_sent_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_sent_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_sent_at?: () -> bool + + def will_save_change_to_last_sent_at?: () -> bool + + def restore_last_sent_at!: () -> void + + def clear_last_sent_at_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Subscription, Integer] + include Enumerable[Subscription] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Subscription, Integer] + end +end diff --git a/sig/rbs_rails/app/models/suggested_edit.rbs b/sig/rbs_rails/app/models/suggested_edit.rbs new file mode 100644 index 000000000..7a5e02b2e --- /dev/null +++ b/sig/rbs_rails/app/models/suggested_edit.rbs @@ -0,0 +1,780 @@ +class SuggestedEdit < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[SuggestedEdit, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def title: () -> String? + + def title=: (String?) -> String? + + def title?: () -> bool + + def title_changed?: () -> bool + + def title_change: () -> [ String?, String? ] + + def title_will_change!: () -> void + + def title_was: () -> String? + + def title_previously_changed?: () -> bool + + def title_previous_change: () -> Array[String?]? + + def title_previously_was: () -> String? + + def title_before_last_save: () -> String? + + def title_change_to_be_saved: () -> Array[String?]? + + def title_in_database: () -> String? + + def saved_change_to_title: () -> Array[String?]? + + def saved_change_to_title?: () -> bool + + def will_save_change_to_title?: () -> bool + + def restore_title!: () -> void + + def clear_title_change: () -> void + + def tags_cache: () -> String? + + def tags_cache=: (String?) -> String? + + def tags_cache?: () -> bool + + def tags_cache_changed?: () -> bool + + def tags_cache_change: () -> [ String?, String? ] + + def tags_cache_will_change!: () -> void + + def tags_cache_was: () -> String? + + def tags_cache_previously_changed?: () -> bool + + def tags_cache_previous_change: () -> Array[String?]? + + def tags_cache_previously_was: () -> String? + + def tags_cache_before_last_save: () -> String? + + def tags_cache_change_to_be_saved: () -> Array[String?]? + + def tags_cache_in_database: () -> String? + + def saved_change_to_tags_cache: () -> Array[String?]? + + def saved_change_to_tags_cache?: () -> bool + + def will_save_change_to_tags_cache?: () -> bool + + def restore_tags_cache!: () -> void + + def clear_tags_cache_change: () -> void + + def body_markdown: () -> String? + + def body_markdown=: (String?) -> String? + + def body_markdown?: () -> bool + + def body_markdown_changed?: () -> bool + + def body_markdown_change: () -> [ String?, String? ] + + def body_markdown_will_change!: () -> void + + def body_markdown_was: () -> String? + + def body_markdown_previously_changed?: () -> bool + + def body_markdown_previous_change: () -> Array[String?]? + + def body_markdown_previously_was: () -> String? + + def body_markdown_before_last_save: () -> String? + + def body_markdown_change_to_be_saved: () -> Array[String?]? + + def body_markdown_in_database: () -> String? + + def saved_change_to_body_markdown: () -> Array[String?]? + + def saved_change_to_body_markdown?: () -> bool + + def will_save_change_to_body_markdown?: () -> bool + + def restore_body_markdown!: () -> void + + def clear_body_markdown_change: () -> void + + def comment: () -> String? + + def comment=: (String?) -> String? + + def comment?: () -> bool + + def comment_changed?: () -> bool + + def comment_change: () -> [ String?, String? ] + + def comment_will_change!: () -> void + + def comment_was: () -> String? + + def comment_previously_changed?: () -> bool + + def comment_previous_change: () -> Array[String?]? + + def comment_previously_was: () -> String? + + def comment_before_last_save: () -> String? + + def comment_change_to_be_saved: () -> Array[String?]? + + def comment_in_database: () -> String? + + def saved_change_to_comment: () -> Array[String?]? + + def saved_change_to_comment?: () -> bool + + def will_save_change_to_comment?: () -> bool + + def restore_comment!: () -> void + + def clear_comment_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def accepted: () -> bool? + + def accepted=: (bool?) -> bool? + + def accepted?: () -> bool + + def accepted_changed?: () -> bool + + def accepted_change: () -> [ bool?, bool? ] + + def accepted_will_change!: () -> void + + def accepted_was: () -> bool? + + def accepted_previously_changed?: () -> bool + + def accepted_previous_change: () -> Array[bool?]? + + def accepted_previously_was: () -> bool? + + def accepted_before_last_save: () -> bool? + + def accepted_change_to_be_saved: () -> Array[bool?]? + + def accepted_in_database: () -> bool? + + def saved_change_to_accepted: () -> Array[bool?]? + + def saved_change_to_accepted?: () -> bool + + def will_save_change_to_accepted?: () -> bool + + def restore_accepted!: () -> void + + def clear_accepted_change: () -> void + + def decided_at: () -> ActiveSupport::TimeWithZone? + + def decided_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def decided_at?: () -> bool + + def decided_at_changed?: () -> bool + + def decided_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def decided_at_will_change!: () -> void + + def decided_at_was: () -> ActiveSupport::TimeWithZone? + + def decided_at_previously_changed?: () -> bool + + def decided_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def decided_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def decided_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def decided_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def decided_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_decided_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_decided_at?: () -> bool + + def will_save_change_to_decided_at?: () -> bool + + def restore_decided_at!: () -> void + + def clear_decided_at_change: () -> void + + def decided_by_id: () -> Integer? + + def decided_by_id=: (Integer?) -> Integer? + + def decided_by_id?: () -> bool + + def decided_by_id_changed?: () -> bool + + def decided_by_id_change: () -> [ Integer?, Integer? ] + + def decided_by_id_will_change!: () -> void + + def decided_by_id_was: () -> Integer? + + def decided_by_id_previously_changed?: () -> bool + + def decided_by_id_previous_change: () -> Array[Integer?]? + + def decided_by_id_previously_was: () -> Integer? + + def decided_by_id_before_last_save: () -> Integer? + + def decided_by_id_change_to_be_saved: () -> Array[Integer?]? + + def decided_by_id_in_database: () -> Integer? + + def saved_change_to_decided_by_id: () -> Array[Integer?]? + + def saved_change_to_decided_by_id?: () -> bool + + def will_save_change_to_decided_by_id?: () -> bool + + def restore_decided_by_id!: () -> void + + def clear_decided_by_id_change: () -> void + + def rejected_comment: () -> String? + + def rejected_comment=: (String?) -> String? + + def rejected_comment?: () -> bool + + def rejected_comment_changed?: () -> bool + + def rejected_comment_change: () -> [ String?, String? ] + + def rejected_comment_will_change!: () -> void + + def rejected_comment_was: () -> String? + + def rejected_comment_previously_changed?: () -> bool + + def rejected_comment_previous_change: () -> Array[String?]? + + def rejected_comment_previously_was: () -> String? + + def rejected_comment_before_last_save: () -> String? + + def rejected_comment_change_to_be_saved: () -> Array[String?]? + + def rejected_comment_in_database: () -> String? + + def saved_change_to_rejected_comment: () -> Array[String?]? + + def saved_change_to_rejected_comment?: () -> bool + + def will_save_change_to_rejected_comment?: () -> bool + + def restore_rejected_comment!: () -> void + + def clear_rejected_comment_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def before_title: () -> String? + + def before_title=: (String?) -> String? + + def before_title?: () -> bool + + def before_title_changed?: () -> bool + + def before_title_change: () -> [ String?, String? ] + + def before_title_will_change!: () -> void + + def before_title_was: () -> String? + + def before_title_previously_changed?: () -> bool + + def before_title_previous_change: () -> Array[String?]? + + def before_title_previously_was: () -> String? + + def before_title_before_last_save: () -> String? + + def before_title_change_to_be_saved: () -> Array[String?]? + + def before_title_in_database: () -> String? + + def saved_change_to_before_title: () -> Array[String?]? + + def saved_change_to_before_title?: () -> bool + + def will_save_change_to_before_title?: () -> bool + + def restore_before_title!: () -> void + + def clear_before_title_change: () -> void + + def before_body: () -> String? + + def before_body=: (String?) -> String? + + def before_body?: () -> bool + + def before_body_changed?: () -> bool + + def before_body_change: () -> [ String?, String? ] + + def before_body_will_change!: () -> void + + def before_body_was: () -> String? + + def before_body_previously_changed?: () -> bool + + def before_body_previous_change: () -> Array[String?]? + + def before_body_previously_was: () -> String? + + def before_body_before_last_save: () -> String? + + def before_body_change_to_be_saved: () -> Array[String?]? + + def before_body_in_database: () -> String? + + def saved_change_to_before_body: () -> Array[String?]? + + def saved_change_to_before_body?: () -> bool + + def will_save_change_to_before_body?: () -> bool + + def restore_before_body!: () -> void + + def clear_before_body_change: () -> void + + def before_body_markdown: () -> String? + + def before_body_markdown=: (String?) -> String? + + def before_body_markdown?: () -> bool + + def before_body_markdown_changed?: () -> bool + + def before_body_markdown_change: () -> [ String?, String? ] + + def before_body_markdown_will_change!: () -> void + + def before_body_markdown_was: () -> String? + + def before_body_markdown_previously_changed?: () -> bool + + def before_body_markdown_previous_change: () -> Array[String?]? + + def before_body_markdown_previously_was: () -> String? + + def before_body_markdown_before_last_save: () -> String? + + def before_body_markdown_change_to_be_saved: () -> Array[String?]? + + def before_body_markdown_in_database: () -> String? + + def saved_change_to_before_body_markdown: () -> Array[String?]? + + def saved_change_to_before_body_markdown?: () -> bool + + def will_save_change_to_before_body_markdown?: () -> bool + + def restore_before_body_markdown!: () -> void + + def clear_before_body_markdown_change: () -> void + + def before_tags_cache: () -> String? + + def before_tags_cache=: (String?) -> String? + + def before_tags_cache?: () -> bool + + def before_tags_cache_changed?: () -> bool + + def before_tags_cache_change: () -> [ String?, String? ] + + def before_tags_cache_will_change!: () -> void + + def before_tags_cache_was: () -> String? + + def before_tags_cache_previously_changed?: () -> bool + + def before_tags_cache_previous_change: () -> Array[String?]? + + def before_tags_cache_previously_was: () -> String? + + def before_tags_cache_before_last_save: () -> String? + + def before_tags_cache_change_to_be_saved: () -> Array[String?]? + + def before_tags_cache_in_database: () -> String? + + def saved_change_to_before_tags_cache: () -> Array[String?]? + + def saved_change_to_before_tags_cache?: () -> bool + + def will_save_change_to_before_tags_cache?: () -> bool + + def restore_before_tags_cache!: () -> void + + def clear_before_tags_cache_change: () -> void + end + include GeneratedAttributeMethods + + def post_type: () -> PostType? + def post_type=: (PostType?) -> PostType? + def build_post_type: (untyped) -> PostType + def create_post_type: (untyped) -> PostType + def create_post_type!: (untyped) -> PostType + def reload_post_type: () -> PostType? + def category: () -> Category? + def category=: (Category?) -> Category? + def build_category: (untyped) -> Category + def create_category: (untyped) -> Category + def create_category!: (untyped) -> Category + def reload_category: () -> Category? + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def decided_by: () -> User? + def decided_by=: (User?) -> User? + def reload_decided_by: () -> User? + def build_decided_by: (untyped) -> User + def create_decided_by: (untyped) -> User + def create_decided_by!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit, Integer] + include Enumerable[SuggestedEdit] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[SuggestedEdit, Integer] + end +end diff --git a/sig/rbs_rails/app/models/tag.rbs b/sig/rbs_rails/app/models/tag.rbs new file mode 100644 index 000000000..cc50a31af --- /dev/null +++ b/sig/rbs_rails/app/models/tag.rbs @@ -0,0 +1,418 @@ +class Tag < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Tag, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def tag_set_id: () -> Integer + + def tag_set_id=: (Integer) -> Integer + + def tag_set_id?: () -> bool + + def tag_set_id_changed?: () -> bool + + def tag_set_id_change: () -> [ Integer?, Integer? ] + + def tag_set_id_will_change!: () -> void + + def tag_set_id_was: () -> Integer? + + def tag_set_id_previously_changed?: () -> bool + + def tag_set_id_previous_change: () -> Array[Integer?]? + + def tag_set_id_previously_was: () -> Integer? + + def tag_set_id_before_last_save: () -> Integer? + + def tag_set_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_set_id_in_database: () -> Integer? + + def saved_change_to_tag_set_id: () -> Array[Integer?]? + + def saved_change_to_tag_set_id?: () -> bool + + def will_save_change_to_tag_set_id?: () -> bool + + def restore_tag_set_id!: () -> void + + def clear_tag_set_id_change: () -> void + + def wiki_markdown: () -> String? + + def wiki_markdown=: (String?) -> String? + + def wiki_markdown?: () -> bool + + def wiki_markdown_changed?: () -> bool + + def wiki_markdown_change: () -> [ String?, String? ] + + def wiki_markdown_will_change!: () -> void + + def wiki_markdown_was: () -> String? + + def wiki_markdown_previously_changed?: () -> bool + + def wiki_markdown_previous_change: () -> Array[String?]? + + def wiki_markdown_previously_was: () -> String? + + def wiki_markdown_before_last_save: () -> String? + + def wiki_markdown_change_to_be_saved: () -> Array[String?]? + + def wiki_markdown_in_database: () -> String? + + def saved_change_to_wiki_markdown: () -> Array[String?]? + + def saved_change_to_wiki_markdown?: () -> bool + + def will_save_change_to_wiki_markdown?: () -> bool + + def restore_wiki_markdown!: () -> void + + def clear_wiki_markdown_change: () -> void + + def wiki: () -> String? + + def wiki=: (String?) -> String? + + def wiki?: () -> bool + + def wiki_changed?: () -> bool + + def wiki_change: () -> [ String?, String? ] + + def wiki_will_change!: () -> void + + def wiki_was: () -> String? + + def wiki_previously_changed?: () -> bool + + def wiki_previous_change: () -> Array[String?]? + + def wiki_previously_was: () -> String? + + def wiki_before_last_save: () -> String? + + def wiki_change_to_be_saved: () -> Array[String?]? + + def wiki_in_database: () -> String? + + def saved_change_to_wiki: () -> Array[String?]? + + def saved_change_to_wiki?: () -> bool + + def will_save_change_to_wiki?: () -> bool + + def restore_wiki!: () -> void + + def clear_wiki_change: () -> void + + def excerpt: () -> String? + + def excerpt=: (String?) -> String? + + def excerpt?: () -> bool + + def excerpt_changed?: () -> bool + + def excerpt_change: () -> [ String?, String? ] + + def excerpt_will_change!: () -> void + + def excerpt_was: () -> String? + + def excerpt_previously_changed?: () -> bool + + def excerpt_previous_change: () -> Array[String?]? + + def excerpt_previously_was: () -> String? + + def excerpt_before_last_save: () -> String? + + def excerpt_change_to_be_saved: () -> Array[String?]? + + def excerpt_in_database: () -> String? + + def saved_change_to_excerpt: () -> Array[String?]? + + def saved_change_to_excerpt?: () -> bool + + def will_save_change_to_excerpt?: () -> bool + + def restore_excerpt!: () -> void + + def clear_excerpt_change: () -> void + + def parent_id: () -> Integer? + + def parent_id=: (Integer?) -> Integer? + + def parent_id?: () -> bool + + def parent_id_changed?: () -> bool + + def parent_id_change: () -> [ Integer?, Integer? ] + + def parent_id_will_change!: () -> void + + def parent_id_was: () -> Integer? + + def parent_id_previously_changed?: () -> bool + + def parent_id_previous_change: () -> Array[Integer?]? + + def parent_id_previously_was: () -> Integer? + + def parent_id_before_last_save: () -> Integer? + + def parent_id_change_to_be_saved: () -> Array[Integer?]? + + def parent_id_in_database: () -> Integer? + + def saved_change_to_parent_id: () -> Array[Integer?]? + + def saved_change_to_parent_id?: () -> bool + + def will_save_change_to_parent_id?: () -> bool + + def restore_parent_id!: () -> void + + def clear_parent_id_change: () -> void + end + include GeneratedAttributeMethods + def children: () -> Tag::ActiveRecord_Associations_CollectionProxy + def children=: (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) -> (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) + def child_ids: () -> Array[Integer] + def child_ids=: (Array[Integer]) -> Array[Integer] + def children_with_paths: () -> TagWithPath::ActiveRecord_Associations_CollectionProxy + def children_with_paths=: (TagWithPath::ActiveRecord_Associations_CollectionProxy | Array[TagWithPath]) -> (TagWithPath::ActiveRecord_Associations_CollectionProxy | Array[TagWithPath]) + def children_with_path_ids: () -> Array[Integer] + def children_with_path_ids=: (Array[Integer]) -> Array[Integer] + def post_history_tags: () -> PostHistoryTag::ActiveRecord_Associations_CollectionProxy + def post_history_tags=: (PostHistoryTag::ActiveRecord_Associations_CollectionProxy | Array[PostHistoryTag]) -> (PostHistoryTag::ActiveRecord_Associations_CollectionProxy | Array[PostHistoryTag]) + def post_history_tag_ids: () -> Array[Integer] + def post_history_tag_ids=: (Array[Integer]) -> Array[Integer] + def tag_synonyms: () -> TagSynonym::ActiveRecord_Associations_CollectionProxy + def tag_synonyms=: (TagSynonym::ActiveRecord_Associations_CollectionProxy | Array[TagSynonym]) -> (TagSynonym::ActiveRecord_Associations_CollectionProxy | Array[TagSynonym]) + def tag_synonym_ids: () -> Array[Integer] + def tag_synonym_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def tag_set: () -> TagSet + def tag_set=: (TagSet?) -> TagSet? + def reload_tag_set: () -> TagSet? + def build_tag_set: (untyped) -> TagSet + def create_tag_set: (untyped) -> TagSet + def create_tag_set!: (untyped) -> TagSet + def parent: () -> Tag? + def parent=: (Tag?) -> Tag? + def reload_parent: () -> Tag? + def build_parent: (untyped) -> Tag + def create_parent: (untyped) -> Tag + def create_parent!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Tag, Integer] + include Enumerable[Tag] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Tag, Integer] + end +end diff --git a/sig/rbs_rails/app/models/tag_set.rbs b/sig/rbs_rails/app/models/tag_set.rbs new file mode 100644 index 000000000..80ee44aff --- /dev/null +++ b/sig/rbs_rails/app/models/tag_set.rbs @@ -0,0 +1,222 @@ +class TagSet < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[TagSet, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + def tags: () -> Tag::ActiveRecord_Associations_CollectionProxy + def tags=: (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) -> (Tag::ActiveRecord_Associations_CollectionProxy | Array[Tag]) + def tag_ids: () -> Array[Integer] + def tag_ids=: (Array[Integer]) -> Array[Integer] + def tags_with_paths: () -> TagWithPath::ActiveRecord_Associations_CollectionProxy + def tags_with_paths=: (TagWithPath::ActiveRecord_Associations_CollectionProxy | Array[TagWithPath]) -> (TagWithPath::ActiveRecord_Associations_CollectionProxy | Array[TagWithPath]) + def tags_with_path_ids: () -> Array[Integer] + def tags_with_path_ids=: (Array[Integer]) -> Array[Integer] + def categories: () -> Category::ActiveRecord_Associations_CollectionProxy + def categories=: (Category::ActiveRecord_Associations_CollectionProxy | Array[Category]) -> (Category::ActiveRecord_Associations_CollectionProxy | Array[Category]) + def category_ids: () -> Array[Integer] + def category_ids=: (Array[Integer]) -> Array[Integer] + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[TagSet, Integer] + include Enumerable[TagSet] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[TagSet, Integer] + end +end diff --git a/sig/rbs_rails/app/models/tag_synonym.rbs b/sig/rbs_rails/app/models/tag_synonym.rbs new file mode 100644 index 000000000..7ebc558d2 --- /dev/null +++ b/sig/rbs_rails/app/models/tag_synonym.rbs @@ -0,0 +1,216 @@ +class TagSynonym < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[TagSynonym, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def tag_id: () -> Integer? + + def tag_id=: (Integer?) -> Integer? + + def tag_id?: () -> bool + + def tag_id_changed?: () -> bool + + def tag_id_change: () -> [ Integer?, Integer? ] + + def tag_id_will_change!: () -> void + + def tag_id_was: () -> Integer? + + def tag_id_previously_changed?: () -> bool + + def tag_id_previous_change: () -> Array[Integer?]? + + def tag_id_previously_was: () -> Integer? + + def tag_id_before_last_save: () -> Integer? + + def tag_id_change_to_be_saved: () -> Array[Integer?]? + + def tag_id_in_database: () -> Integer? + + def saved_change_to_tag_id: () -> Array[Integer?]? + + def saved_change_to_tag_id?: () -> bool + + def will_save_change_to_tag_id?: () -> bool + + def restore_tag_id!: () -> void + + def clear_tag_id_change: () -> void + + def name: () -> String + + def name=: (String) -> String + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community? + def community=: (Community?) -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def reload_community: () -> Community? + def tag: () -> Tag + def tag=: (Tag?) -> Tag? + def reload_tag: () -> Tag? + def build_tag: (untyped) -> Tag + def create_tag: (untyped) -> Tag + def create_tag!: (untyped) -> Tag + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[TagSynonym, Integer] + include Enumerable[TagSynonym] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[TagSynonym, Integer] + end +end diff --git a/sig/rbs_rails/app/models/thread_follower.rbs b/sig/rbs_rails/app/models/thread_follower.rbs new file mode 100644 index 000000000..5de992c4f --- /dev/null +++ b/sig/rbs_rails/app/models/thread_follower.rbs @@ -0,0 +1,258 @@ +class ThreadFollower < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[ThreadFollower, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def comment_thread_id: () -> Integer? + + def comment_thread_id=: (Integer?) -> Integer? + + def comment_thread_id?: () -> bool + + def comment_thread_id_changed?: () -> bool + + def comment_thread_id_change: () -> [ Integer?, Integer? ] + + def comment_thread_id_will_change!: () -> void + + def comment_thread_id_was: () -> Integer? + + def comment_thread_id_previously_changed?: () -> bool + + def comment_thread_id_previous_change: () -> Array[Integer?]? + + def comment_thread_id_previously_was: () -> Integer? + + def comment_thread_id_before_last_save: () -> Integer? + + def comment_thread_id_change_to_be_saved: () -> Array[Integer?]? + + def comment_thread_id_in_database: () -> Integer? + + def saved_change_to_comment_thread_id: () -> Array[Integer?]? + + def saved_change_to_comment_thread_id?: () -> bool + + def will_save_change_to_comment_thread_id?: () -> bool + + def restore_comment_thread_id!: () -> void + + def clear_comment_thread_id_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + end + include GeneratedAttributeMethods + + def comment_thread: () -> CommentThread? + def comment_thread=: (CommentThread?) -> CommentThread? + def reload_comment_thread: () -> CommentThread? + def build_comment_thread: (untyped) -> CommentThread + def create_comment_thread: (untyped) -> CommentThread + def create_comment_thread!: (untyped) -> CommentThread + def post: () -> Post? + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[ThreadFollower, Integer] + include Enumerable[ThreadFollower] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[ThreadFollower, Integer] + end +end diff --git a/sig/rbs_rails/app/models/user.rbs b/sig/rbs_rails/app/models/user.rbs new file mode 100644 index 000000000..4bece34be --- /dev/null +++ b/sig/rbs_rails/app/models/user.rbs @@ -0,0 +1,1686 @@ +class User < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[User, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def email: () -> String? + + def email=: (String?) -> String? + + def email?: () -> bool + + def email_changed?: () -> bool + + def email_change: () -> [ String?, String? ] + + def email_will_change!: () -> void + + def email_was: () -> String? + + def email_previously_changed?: () -> bool + + def email_previous_change: () -> Array[String?]? + + def email_previously_was: () -> String? + + def email_before_last_save: () -> String? + + def email_change_to_be_saved: () -> Array[String?]? + + def email_in_database: () -> String? + + def saved_change_to_email: () -> Array[String?]? + + def saved_change_to_email?: () -> bool + + def will_save_change_to_email?: () -> bool + + def restore_email!: () -> void + + def clear_email_change: () -> void + + def encrypted_password: () -> String? + + def encrypted_password=: (String?) -> String? + + def encrypted_password?: () -> bool + + def encrypted_password_changed?: () -> bool + + def encrypted_password_change: () -> [ String?, String? ] + + def encrypted_password_will_change!: () -> void + + def encrypted_password_was: () -> String? + + def encrypted_password_previously_changed?: () -> bool + + def encrypted_password_previous_change: () -> Array[String?]? + + def encrypted_password_previously_was: () -> String? + + def encrypted_password_before_last_save: () -> String? + + def encrypted_password_change_to_be_saved: () -> Array[String?]? + + def encrypted_password_in_database: () -> String? + + def saved_change_to_encrypted_password: () -> Array[String?]? + + def saved_change_to_encrypted_password?: () -> bool + + def will_save_change_to_encrypted_password?: () -> bool + + def restore_encrypted_password!: () -> void + + def clear_encrypted_password_change: () -> void + + def reset_password_token: () -> String? + + def reset_password_token=: (String?) -> String? + + def reset_password_token?: () -> bool + + def reset_password_token_changed?: () -> bool + + def reset_password_token_change: () -> [ String?, String? ] + + def reset_password_token_will_change!: () -> void + + def reset_password_token_was: () -> String? + + def reset_password_token_previously_changed?: () -> bool + + def reset_password_token_previous_change: () -> Array[String?]? + + def reset_password_token_previously_was: () -> String? + + def reset_password_token_before_last_save: () -> String? + + def reset_password_token_change_to_be_saved: () -> Array[String?]? + + def reset_password_token_in_database: () -> String? + + def saved_change_to_reset_password_token: () -> Array[String?]? + + def saved_change_to_reset_password_token?: () -> bool + + def will_save_change_to_reset_password_token?: () -> bool + + def restore_reset_password_token!: () -> void + + def clear_reset_password_token_change: () -> void + + def reset_password_sent_at: () -> ActiveSupport::TimeWithZone? + + def reset_password_sent_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def reset_password_sent_at?: () -> bool + + def reset_password_sent_at_changed?: () -> bool + + def reset_password_sent_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def reset_password_sent_at_will_change!: () -> void + + def reset_password_sent_at_was: () -> ActiveSupport::TimeWithZone? + + def reset_password_sent_at_previously_changed?: () -> bool + + def reset_password_sent_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def reset_password_sent_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def reset_password_sent_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def reset_password_sent_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def reset_password_sent_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_reset_password_sent_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_reset_password_sent_at?: () -> bool + + def will_save_change_to_reset_password_sent_at?: () -> bool + + def restore_reset_password_sent_at!: () -> void + + def clear_reset_password_sent_at_change: () -> void + + def remember_created_at: () -> ActiveSupport::TimeWithZone? + + def remember_created_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def remember_created_at?: () -> bool + + def remember_created_at_changed?: () -> bool + + def remember_created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def remember_created_at_will_change!: () -> void + + def remember_created_at_was: () -> ActiveSupport::TimeWithZone? + + def remember_created_at_previously_changed?: () -> bool + + def remember_created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def remember_created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def remember_created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def remember_created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def remember_created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_remember_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_remember_created_at?: () -> bool + + def will_save_change_to_remember_created_at?: () -> bool + + def restore_remember_created_at!: () -> void + + def clear_remember_created_at_change: () -> void + + def sign_in_count: () -> Integer + + def sign_in_count=: (Integer) -> Integer + + def sign_in_count?: () -> bool + + def sign_in_count_changed?: () -> bool + + def sign_in_count_change: () -> [ Integer?, Integer? ] + + def sign_in_count_will_change!: () -> void + + def sign_in_count_was: () -> Integer? + + def sign_in_count_previously_changed?: () -> bool + + def sign_in_count_previous_change: () -> Array[Integer?]? + + def sign_in_count_previously_was: () -> Integer? + + def sign_in_count_before_last_save: () -> Integer? + + def sign_in_count_change_to_be_saved: () -> Array[Integer?]? + + def sign_in_count_in_database: () -> Integer? + + def saved_change_to_sign_in_count: () -> Array[Integer?]? + + def saved_change_to_sign_in_count?: () -> bool + + def will_save_change_to_sign_in_count?: () -> bool + + def restore_sign_in_count!: () -> void + + def clear_sign_in_count_change: () -> void + + def current_sign_in_at: () -> ActiveSupport::TimeWithZone? + + def current_sign_in_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def current_sign_in_at?: () -> bool + + def current_sign_in_at_changed?: () -> bool + + def current_sign_in_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def current_sign_in_at_will_change!: () -> void + + def current_sign_in_at_was: () -> ActiveSupport::TimeWithZone? + + def current_sign_in_at_previously_changed?: () -> bool + + def current_sign_in_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def current_sign_in_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def current_sign_in_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def current_sign_in_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def current_sign_in_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_current_sign_in_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_current_sign_in_at?: () -> bool + + def will_save_change_to_current_sign_in_at?: () -> bool + + def restore_current_sign_in_at!: () -> void + + def clear_current_sign_in_at_change: () -> void + + def last_sign_in_at: () -> ActiveSupport::TimeWithZone? + + def last_sign_in_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def last_sign_in_at?: () -> bool + + def last_sign_in_at_changed?: () -> bool + + def last_sign_in_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def last_sign_in_at_will_change!: () -> void + + def last_sign_in_at_was: () -> ActiveSupport::TimeWithZone? + + def last_sign_in_at_previously_changed?: () -> bool + + def last_sign_in_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_sign_in_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def last_sign_in_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def last_sign_in_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def last_sign_in_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_last_sign_in_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_last_sign_in_at?: () -> bool + + def will_save_change_to_last_sign_in_at?: () -> bool + + def restore_last_sign_in_at!: () -> void + + def clear_last_sign_in_at_change: () -> void + + def current_sign_in_ip: () -> String? + + def current_sign_in_ip=: (String?) -> String? + + def current_sign_in_ip?: () -> bool + + def current_sign_in_ip_changed?: () -> bool + + def current_sign_in_ip_change: () -> [ String?, String? ] + + def current_sign_in_ip_will_change!: () -> void + + def current_sign_in_ip_was: () -> String? + + def current_sign_in_ip_previously_changed?: () -> bool + + def current_sign_in_ip_previous_change: () -> Array[String?]? + + def current_sign_in_ip_previously_was: () -> String? + + def current_sign_in_ip_before_last_save: () -> String? + + def current_sign_in_ip_change_to_be_saved: () -> Array[String?]? + + def current_sign_in_ip_in_database: () -> String? + + def saved_change_to_current_sign_in_ip: () -> Array[String?]? + + def saved_change_to_current_sign_in_ip?: () -> bool + + def will_save_change_to_current_sign_in_ip?: () -> bool + + def restore_current_sign_in_ip!: () -> void + + def clear_current_sign_in_ip_change: () -> void + + def last_sign_in_ip: () -> String? + + def last_sign_in_ip=: (String?) -> String? + + def last_sign_in_ip?: () -> bool + + def last_sign_in_ip_changed?: () -> bool + + def last_sign_in_ip_change: () -> [ String?, String? ] + + def last_sign_in_ip_will_change!: () -> void + + def last_sign_in_ip_was: () -> String? + + def last_sign_in_ip_previously_changed?: () -> bool + + def last_sign_in_ip_previous_change: () -> Array[String?]? + + def last_sign_in_ip_previously_was: () -> String? + + def last_sign_in_ip_before_last_save: () -> String? + + def last_sign_in_ip_change_to_be_saved: () -> Array[String?]? + + def last_sign_in_ip_in_database: () -> String? + + def saved_change_to_last_sign_in_ip: () -> Array[String?]? + + def saved_change_to_last_sign_in_ip?: () -> bool + + def will_save_change_to_last_sign_in_ip?: () -> bool + + def restore_last_sign_in_ip!: () -> void + + def clear_last_sign_in_ip_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def is_global_moderator: () -> bool? + + def is_global_moderator=: (bool?) -> bool? + + def is_global_moderator?: () -> bool + + def is_global_moderator_changed?: () -> bool + + def is_global_moderator_change: () -> [ bool?, bool? ] + + def is_global_moderator_will_change!: () -> void + + def is_global_moderator_was: () -> bool? + + def is_global_moderator_previously_changed?: () -> bool + + def is_global_moderator_previous_change: () -> Array[bool?]? + + def is_global_moderator_previously_was: () -> bool? + + def is_global_moderator_before_last_save: () -> bool? + + def is_global_moderator_change_to_be_saved: () -> Array[bool?]? + + def is_global_moderator_in_database: () -> bool? + + def saved_change_to_is_global_moderator: () -> Array[bool?]? + + def saved_change_to_is_global_moderator?: () -> bool + + def will_save_change_to_is_global_moderator?: () -> bool + + def restore_is_global_moderator!: () -> void + + def clear_is_global_moderator_change: () -> void + + def is_global_admin: () -> bool? + + def is_global_admin=: (bool?) -> bool? + + def is_global_admin?: () -> bool + + def is_global_admin_changed?: () -> bool + + def is_global_admin_change: () -> [ bool?, bool? ] + + def is_global_admin_will_change!: () -> void + + def is_global_admin_was: () -> bool? + + def is_global_admin_previously_changed?: () -> bool + + def is_global_admin_previous_change: () -> Array[bool?]? + + def is_global_admin_previously_was: () -> bool? + + def is_global_admin_before_last_save: () -> bool? + + def is_global_admin_change_to_be_saved: () -> Array[bool?]? + + def is_global_admin_in_database: () -> bool? + + def saved_change_to_is_global_admin: () -> Array[bool?]? + + def saved_change_to_is_global_admin?: () -> bool + + def will_save_change_to_is_global_admin?: () -> bool + + def restore_is_global_admin!: () -> void + + def clear_is_global_admin_change: () -> void + + def username: () -> String? + + def username=: (String?) -> String? + + def username?: () -> bool + + def username_changed?: () -> bool + + def username_change: () -> [ String?, String? ] + + def username_will_change!: () -> void + + def username_was: () -> String? + + def username_previously_changed?: () -> bool + + def username_previous_change: () -> Array[String?]? + + def username_previously_was: () -> String? + + def username_before_last_save: () -> String? + + def username_change_to_be_saved: () -> Array[String?]? + + def username_in_database: () -> String? + + def saved_change_to_username: () -> Array[String?]? + + def saved_change_to_username?: () -> bool + + def will_save_change_to_username?: () -> bool + + def restore_username!: () -> void + + def clear_username_change: () -> void + + def profile: () -> String? + + def profile=: (String?) -> String? + + def profile?: () -> bool + + def profile_changed?: () -> bool + + def profile_change: () -> [ String?, String? ] + + def profile_will_change!: () -> void + + def profile_was: () -> String? + + def profile_previously_changed?: () -> bool + + def profile_previous_change: () -> Array[String?]? + + def profile_previously_was: () -> String? + + def profile_before_last_save: () -> String? + + def profile_change_to_be_saved: () -> Array[String?]? + + def profile_in_database: () -> String? + + def saved_change_to_profile: () -> Array[String?]? + + def saved_change_to_profile?: () -> bool + + def will_save_change_to_profile?: () -> bool + + def restore_profile!: () -> void + + def clear_profile_change: () -> void + + def website: () -> String? + + def website=: (String?) -> String? + + def website?: () -> bool + + def website_changed?: () -> bool + + def website_change: () -> [ String?, String? ] + + def website_will_change!: () -> void + + def website_was: () -> String? + + def website_previously_changed?: () -> bool + + def website_previous_change: () -> Array[String?]? + + def website_previously_was: () -> String? + + def website_before_last_save: () -> String? + + def website_change_to_be_saved: () -> Array[String?]? + + def website_in_database: () -> String? + + def saved_change_to_website: () -> Array[String?]? + + def saved_change_to_website?: () -> bool + + def will_save_change_to_website?: () -> bool + + def restore_website!: () -> void + + def clear_website_change: () -> void + + def twitter: () -> String? + + def twitter=: (String?) -> String? + + def twitter?: () -> bool + + def twitter_changed?: () -> bool + + def twitter_change: () -> [ String?, String? ] + + def twitter_will_change!: () -> void + + def twitter_was: () -> String? + + def twitter_previously_changed?: () -> bool + + def twitter_previous_change: () -> Array[String?]? + + def twitter_previously_was: () -> String? + + def twitter_before_last_save: () -> String? + + def twitter_change_to_be_saved: () -> Array[String?]? + + def twitter_in_database: () -> String? + + def saved_change_to_twitter: () -> Array[String?]? + + def saved_change_to_twitter?: () -> bool + + def will_save_change_to_twitter?: () -> bool + + def restore_twitter!: () -> void + + def clear_twitter_change: () -> void + + def profile_markdown: () -> String? + + def profile_markdown=: (String?) -> String? + + def profile_markdown?: () -> bool + + def profile_markdown_changed?: () -> bool + + def profile_markdown_change: () -> [ String?, String? ] + + def profile_markdown_will_change!: () -> void + + def profile_markdown_was: () -> String? + + def profile_markdown_previously_changed?: () -> bool + + def profile_markdown_previous_change: () -> Array[String?]? + + def profile_markdown_previously_was: () -> String? + + def profile_markdown_before_last_save: () -> String? + + def profile_markdown_change_to_be_saved: () -> Array[String?]? + + def profile_markdown_in_database: () -> String? + + def saved_change_to_profile_markdown: () -> Array[String?]? + + def saved_change_to_profile_markdown?: () -> bool + + def will_save_change_to_profile_markdown?: () -> bool + + def restore_profile_markdown!: () -> void + + def clear_profile_markdown_change: () -> void + + def se_acct_id: () -> Integer? + + def se_acct_id=: (Integer?) -> Integer? + + def se_acct_id?: () -> bool + + def se_acct_id_changed?: () -> bool + + def se_acct_id_change: () -> [ Integer?, Integer? ] + + def se_acct_id_will_change!: () -> void + + def se_acct_id_was: () -> Integer? + + def se_acct_id_previously_changed?: () -> bool + + def se_acct_id_previous_change: () -> Array[Integer?]? + + def se_acct_id_previously_was: () -> Integer? + + def se_acct_id_before_last_save: () -> Integer? + + def se_acct_id_change_to_be_saved: () -> Array[Integer?]? + + def se_acct_id_in_database: () -> Integer? + + def saved_change_to_se_acct_id: () -> Array[Integer?]? + + def saved_change_to_se_acct_id?: () -> bool + + def will_save_change_to_se_acct_id?: () -> bool + + def restore_se_acct_id!: () -> void + + def clear_se_acct_id_change: () -> void + + def transferred_content: () -> bool? + + def transferred_content=: (bool?) -> bool? + + def transferred_content?: () -> bool + + def transferred_content_changed?: () -> bool + + def transferred_content_change: () -> [ bool?, bool? ] + + def transferred_content_will_change!: () -> void + + def transferred_content_was: () -> bool? + + def transferred_content_previously_changed?: () -> bool + + def transferred_content_previous_change: () -> Array[bool?]? + + def transferred_content_previously_was: () -> bool? + + def transferred_content_before_last_save: () -> bool? + + def transferred_content_change_to_be_saved: () -> Array[bool?]? + + def transferred_content_in_database: () -> bool? + + def saved_change_to_transferred_content: () -> Array[bool?]? + + def saved_change_to_transferred_content?: () -> bool + + def will_save_change_to_transferred_content?: () -> bool + + def restore_transferred_content!: () -> void + + def clear_transferred_content_change: () -> void + + def login_token: () -> String? + + def login_token=: (String?) -> String? + + def login_token?: () -> bool + + def login_token_changed?: () -> bool + + def login_token_change: () -> [ String?, String? ] + + def login_token_will_change!: () -> void + + def login_token_was: () -> String? + + def login_token_previously_changed?: () -> bool + + def login_token_previous_change: () -> Array[String?]? + + def login_token_previously_was: () -> String? + + def login_token_before_last_save: () -> String? + + def login_token_change_to_be_saved: () -> Array[String?]? + + def login_token_in_database: () -> String? + + def saved_change_to_login_token: () -> Array[String?]? + + def saved_change_to_login_token?: () -> bool + + def will_save_change_to_login_token?: () -> bool + + def restore_login_token!: () -> void + + def clear_login_token_change: () -> void + + def login_token_expires_at: () -> ActiveSupport::TimeWithZone? + + def login_token_expires_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def login_token_expires_at?: () -> bool + + def login_token_expires_at_changed?: () -> bool + + def login_token_expires_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def login_token_expires_at_will_change!: () -> void + + def login_token_expires_at_was: () -> ActiveSupport::TimeWithZone? + + def login_token_expires_at_previously_changed?: () -> bool + + def login_token_expires_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def login_token_expires_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def login_token_expires_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def login_token_expires_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def login_token_expires_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_login_token_expires_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_login_token_expires_at?: () -> bool + + def will_save_change_to_login_token_expires_at?: () -> bool + + def restore_login_token_expires_at!: () -> void + + def clear_login_token_expires_at_change: () -> void + + def two_factor_token: () -> String? + + def two_factor_token=: (String?) -> String? + + def two_factor_token?: () -> bool + + def two_factor_token_changed?: () -> bool + + def two_factor_token_change: () -> [ String?, String? ] + + def two_factor_token_will_change!: () -> void + + def two_factor_token_was: () -> String? + + def two_factor_token_previously_changed?: () -> bool + + def two_factor_token_previous_change: () -> Array[String?]? + + def two_factor_token_previously_was: () -> String? + + def two_factor_token_before_last_save: () -> String? + + def two_factor_token_change_to_be_saved: () -> Array[String?]? + + def two_factor_token_in_database: () -> String? + + def saved_change_to_two_factor_token: () -> Array[String?]? + + def saved_change_to_two_factor_token?: () -> bool + + def will_save_change_to_two_factor_token?: () -> bool + + def restore_two_factor_token!: () -> void + + def clear_two_factor_token_change: () -> void + + def enabled_2fa: () -> bool? + + def enabled_2fa=: (bool?) -> bool? + + def enabled_2fa?: () -> bool + + def enabled_2fa_changed?: () -> bool + + def enabled_2fa_change: () -> [ bool?, bool? ] + + def enabled_2fa_will_change!: () -> void + + def enabled_2fa_was: () -> bool? + + def enabled_2fa_previously_changed?: () -> bool + + def enabled_2fa_previous_change: () -> Array[bool?]? + + def enabled_2fa_previously_was: () -> bool? + + def enabled_2fa_before_last_save: () -> bool? + + def enabled_2fa_change_to_be_saved: () -> Array[bool?]? + + def enabled_2fa_in_database: () -> bool? + + def saved_change_to_enabled_2fa: () -> Array[bool?]? + + def saved_change_to_enabled_2fa?: () -> bool + + def will_save_change_to_enabled_2fa?: () -> bool + + def restore_enabled_2fa!: () -> void + + def clear_enabled_2fa_change: () -> void + + def confirmation_token: () -> String? + + def confirmation_token=: (String?) -> String? + + def confirmation_token?: () -> bool + + def confirmation_token_changed?: () -> bool + + def confirmation_token_change: () -> [ String?, String? ] + + def confirmation_token_will_change!: () -> void + + def confirmation_token_was: () -> String? + + def confirmation_token_previously_changed?: () -> bool + + def confirmation_token_previous_change: () -> Array[String?]? + + def confirmation_token_previously_was: () -> String? + + def confirmation_token_before_last_save: () -> String? + + def confirmation_token_change_to_be_saved: () -> Array[String?]? + + def confirmation_token_in_database: () -> String? + + def saved_change_to_confirmation_token: () -> Array[String?]? + + def saved_change_to_confirmation_token?: () -> bool + + def will_save_change_to_confirmation_token?: () -> bool + + def restore_confirmation_token!: () -> void + + def clear_confirmation_token_change: () -> void + + def confirmed_at: () -> ActiveSupport::TimeWithZone? + + def confirmed_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def confirmed_at?: () -> bool + + def confirmed_at_changed?: () -> bool + + def confirmed_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def confirmed_at_will_change!: () -> void + + def confirmed_at_was: () -> ActiveSupport::TimeWithZone? + + def confirmed_at_previously_changed?: () -> bool + + def confirmed_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def confirmed_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def confirmed_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def confirmed_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def confirmed_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_confirmed_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_confirmed_at?: () -> bool + + def will_save_change_to_confirmed_at?: () -> bool + + def restore_confirmed_at!: () -> void + + def clear_confirmed_at_change: () -> void + + def confirmation_sent_at: () -> ActiveSupport::TimeWithZone? + + def confirmation_sent_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def confirmation_sent_at?: () -> bool + + def confirmation_sent_at_changed?: () -> bool + + def confirmation_sent_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def confirmation_sent_at_will_change!: () -> void + + def confirmation_sent_at_was: () -> ActiveSupport::TimeWithZone? + + def confirmation_sent_at_previously_changed?: () -> bool + + def confirmation_sent_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def confirmation_sent_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def confirmation_sent_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def confirmation_sent_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def confirmation_sent_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_confirmation_sent_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_confirmation_sent_at?: () -> bool + + def will_save_change_to_confirmation_sent_at?: () -> bool + + def restore_confirmation_sent_at!: () -> void + + def clear_confirmation_sent_at_change: () -> void + + def unconfirmed_email: () -> String? + + def unconfirmed_email=: (String?) -> String? + + def unconfirmed_email?: () -> bool + + def unconfirmed_email_changed?: () -> bool + + def unconfirmed_email_change: () -> [ String?, String? ] + + def unconfirmed_email_will_change!: () -> void + + def unconfirmed_email_was: () -> String? + + def unconfirmed_email_previously_changed?: () -> bool + + def unconfirmed_email_previous_change: () -> Array[String?]? + + def unconfirmed_email_previously_was: () -> String? + + def unconfirmed_email_before_last_save: () -> String? + + def unconfirmed_email_change_to_be_saved: () -> Array[String?]? + + def unconfirmed_email_in_database: () -> String? + + def saved_change_to_unconfirmed_email: () -> Array[String?]? + + def saved_change_to_unconfirmed_email?: () -> bool + + def will_save_change_to_unconfirmed_email?: () -> bool + + def restore_unconfirmed_email!: () -> void + + def clear_unconfirmed_email_change: () -> void + + def two_factor_method: () -> String? + + def two_factor_method=: (String?) -> String? + + def two_factor_method?: () -> bool + + def two_factor_method_changed?: () -> bool + + def two_factor_method_change: () -> [ String?, String? ] + + def two_factor_method_will_change!: () -> void + + def two_factor_method_was: () -> String? + + def two_factor_method_previously_changed?: () -> bool + + def two_factor_method_previous_change: () -> Array[String?]? + + def two_factor_method_previously_was: () -> String? + + def two_factor_method_before_last_save: () -> String? + + def two_factor_method_change_to_be_saved: () -> Array[String?]? + + def two_factor_method_in_database: () -> String? + + def saved_change_to_two_factor_method: () -> Array[String?]? + + def saved_change_to_two_factor_method?: () -> bool + + def will_save_change_to_two_factor_method?: () -> bool + + def restore_two_factor_method!: () -> void + + def clear_two_factor_method_change: () -> void + + def staff: () -> bool + + def staff=: (bool) -> bool + + def staff?: () -> bool + + def staff_changed?: () -> bool + + def staff_change: () -> [ bool?, bool? ] + + def staff_will_change!: () -> void + + def staff_was: () -> bool? + + def staff_previously_changed?: () -> bool + + def staff_previous_change: () -> Array[bool?]? + + def staff_previously_was: () -> bool? + + def staff_before_last_save: () -> bool? + + def staff_change_to_be_saved: () -> Array[bool?]? + + def staff_in_database: () -> bool? + + def saved_change_to_staff: () -> Array[bool?]? + + def saved_change_to_staff?: () -> bool + + def will_save_change_to_staff?: () -> bool + + def restore_staff!: () -> void + + def clear_staff_change: () -> void + + def failed_attempts: () -> Integer + + def failed_attempts=: (Integer) -> Integer + + def failed_attempts?: () -> bool + + def failed_attempts_changed?: () -> bool + + def failed_attempts_change: () -> [ Integer?, Integer? ] + + def failed_attempts_will_change!: () -> void + + def failed_attempts_was: () -> Integer? + + def failed_attempts_previously_changed?: () -> bool + + def failed_attempts_previous_change: () -> Array[Integer?]? + + def failed_attempts_previously_was: () -> Integer? + + def failed_attempts_before_last_save: () -> Integer? + + def failed_attempts_change_to_be_saved: () -> Array[Integer?]? + + def failed_attempts_in_database: () -> Integer? + + def saved_change_to_failed_attempts: () -> Array[Integer?]? + + def saved_change_to_failed_attempts?: () -> bool + + def will_save_change_to_failed_attempts?: () -> bool + + def restore_failed_attempts!: () -> void + + def clear_failed_attempts_change: () -> void + + def unlock_token: () -> String? + + def unlock_token=: (String?) -> String? + + def unlock_token?: () -> bool + + def unlock_token_changed?: () -> bool + + def unlock_token_change: () -> [ String?, String? ] + + def unlock_token_will_change!: () -> void + + def unlock_token_was: () -> String? + + def unlock_token_previously_changed?: () -> bool + + def unlock_token_previous_change: () -> Array[String?]? + + def unlock_token_previously_was: () -> String? + + def unlock_token_before_last_save: () -> String? + + def unlock_token_change_to_be_saved: () -> Array[String?]? + + def unlock_token_in_database: () -> String? + + def saved_change_to_unlock_token: () -> Array[String?]? + + def saved_change_to_unlock_token?: () -> bool + + def will_save_change_to_unlock_token?: () -> bool + + def restore_unlock_token!: () -> void + + def clear_unlock_token_change: () -> void + + def locked_at: () -> ActiveSupport::TimeWithZone? + + def locked_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def locked_at?: () -> bool + + def locked_at_changed?: () -> bool + + def locked_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def locked_at_will_change!: () -> void + + def locked_at_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_previously_changed?: () -> bool + + def locked_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def locked_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def locked_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def locked_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_locked_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_locked_at?: () -> bool + + def will_save_change_to_locked_at?: () -> bool + + def restore_locked_at!: () -> void + + def clear_locked_at_change: () -> void + + def trust_level: () -> Integer? + + def trust_level=: (Integer?) -> Integer? + + def trust_level?: () -> bool + + def trust_level_changed?: () -> bool + + def trust_level_change: () -> [ Integer?, Integer? ] + + def trust_level_will_change!: () -> void + + def trust_level_was: () -> Integer? + + def trust_level_previously_changed?: () -> bool + + def trust_level_previous_change: () -> Array[Integer?]? + + def trust_level_previously_was: () -> Integer? + + def trust_level_before_last_save: () -> Integer? + + def trust_level_change_to_be_saved: () -> Array[Integer?]? + + def trust_level_in_database: () -> Integer? + + def saved_change_to_trust_level: () -> Array[Integer?]? + + def saved_change_to_trust_level?: () -> bool + + def will_save_change_to_trust_level?: () -> bool + + def restore_trust_level!: () -> void + + def clear_trust_level_change: () -> void + + def developer: () -> bool? + + def developer=: (bool?) -> bool? + + def developer?: () -> bool + + def developer_changed?: () -> bool + + def developer_change: () -> [ bool?, bool? ] + + def developer_will_change!: () -> void + + def developer_was: () -> bool? + + def developer_previously_changed?: () -> bool + + def developer_previous_change: () -> Array[bool?]? + + def developer_previously_was: () -> bool? + + def developer_before_last_save: () -> bool? + + def developer_change_to_be_saved: () -> Array[bool?]? + + def developer_in_database: () -> bool? + + def saved_change_to_developer: () -> Array[bool?]? + + def saved_change_to_developer?: () -> bool + + def will_save_change_to_developer?: () -> bool + + def restore_developer!: () -> void + + def clear_developer_change: () -> void + + def cid: () -> String? + + def cid=: (String?) -> String? + + def cid?: () -> bool + + def cid_changed?: () -> bool + + def cid_change: () -> [ String?, String? ] + + def cid_will_change!: () -> void + + def cid_was: () -> String? + + def cid_previously_changed?: () -> bool + + def cid_previous_change: () -> Array[String?]? + + def cid_previously_was: () -> String? + + def cid_before_last_save: () -> String? + + def cid_change_to_be_saved: () -> Array[String?]? + + def cid_in_database: () -> String? + + def saved_change_to_cid: () -> Array[String?]? + + def saved_change_to_cid?: () -> bool + + def will_save_change_to_cid?: () -> bool + + def restore_cid!: () -> void + + def clear_cid_change: () -> void + + def discord: () -> String? + + def discord=: (String?) -> String? + + def discord?: () -> bool + + def discord_changed?: () -> bool + + def discord_change: () -> [ String?, String? ] + + def discord_will_change!: () -> void + + def discord_was: () -> String? + + def discord_previously_changed?: () -> bool + + def discord_previous_change: () -> Array[String?]? + + def discord_previously_was: () -> String? + + def discord_before_last_save: () -> String? + + def discord_change_to_be_saved: () -> Array[String?]? + + def discord_in_database: () -> String? + + def saved_change_to_discord: () -> Array[String?]? + + def saved_change_to_discord?: () -> bool + + def will_save_change_to_discord?: () -> bool + + def restore_discord!: () -> void + + def clear_discord_change: () -> void + + def deleted: () -> bool + + def deleted=: (bool) -> bool + + def deleted?: () -> bool + + def deleted_changed?: () -> bool + + def deleted_change: () -> [ bool?, bool? ] + + def deleted_will_change!: () -> void + + def deleted_was: () -> bool? + + def deleted_previously_changed?: () -> bool + + def deleted_previous_change: () -> Array[bool?]? + + def deleted_previously_was: () -> bool? + + def deleted_before_last_save: () -> bool? + + def deleted_change_to_be_saved: () -> Array[bool?]? + + def deleted_in_database: () -> bool? + + def saved_change_to_deleted: () -> Array[bool?]? + + def saved_change_to_deleted?: () -> bool + + def will_save_change_to_deleted?: () -> bool + + def restore_deleted!: () -> void + + def clear_deleted_change: () -> void + + def deleted_at: () -> ActiveSupport::TimeWithZone? + + def deleted_at=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def deleted_at?: () -> bool + + def deleted_at_changed?: () -> bool + + def deleted_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def deleted_at_will_change!: () -> void + + def deleted_at_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_previously_changed?: () -> bool + + def deleted_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def deleted_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def deleted_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def deleted_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_deleted_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_deleted_at?: () -> bool + + def will_save_change_to_deleted_at?: () -> bool + + def restore_deleted_at!: () -> void + + def clear_deleted_at_change: () -> void + + def deleted_by_id: () -> Integer? + + def deleted_by_id=: (Integer?) -> Integer? + + def deleted_by_id?: () -> bool + + def deleted_by_id_changed?: () -> bool + + def deleted_by_id_change: () -> [ Integer?, Integer? ] + + def deleted_by_id_will_change!: () -> void + + def deleted_by_id_was: () -> Integer? + + def deleted_by_id_previously_changed?: () -> bool + + def deleted_by_id_previous_change: () -> Array[Integer?]? + + def deleted_by_id_previously_was: () -> Integer? + + def deleted_by_id_before_last_save: () -> Integer? + + def deleted_by_id_change_to_be_saved: () -> Array[Integer?]? + + def deleted_by_id_in_database: () -> Integer? + + def saved_change_to_deleted_by_id: () -> Array[Integer?]? + + def saved_change_to_deleted_by_id?: () -> bool + + def will_save_change_to_deleted_by_id?: () -> bool + + def restore_deleted_by_id!: () -> void + + def clear_deleted_by_id_change: () -> void + + def consent: () -> bool? + + def consent=: (bool?) -> bool? + + def consent?: () -> bool + + def consent_changed?: () -> bool + + def consent_change: () -> [ bool?, bool? ] + + def consent_will_change!: () -> void + + def consent_was: () -> bool? + + def consent_previously_changed?: () -> bool + + def consent_previous_change: () -> Array[bool?]? + + def consent_previously_was: () -> bool? + + def consent_before_last_save: () -> bool? + + def consent_change_to_be_saved: () -> Array[bool?]? + + def consent_in_database: () -> bool? + + def saved_change_to_consent: () -> Array[bool?]? + + def saved_change_to_consent?: () -> bool + + def will_save_change_to_consent?: () -> bool + + def restore_consent!: () -> void + + def clear_consent_change: () -> void + end + include GeneratedAttributeMethods + def posts: () -> Post::ActiveRecord_Associations_CollectionProxy + def posts=: (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) -> (Post::ActiveRecord_Associations_CollectionProxy | Array[Post]) + def post_ids: () -> Array[Integer] + def post_ids=: (Array[Integer]) -> Array[Integer] + def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy + def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) + def vote_ids: () -> Array[Integer] + def vote_ids=: (Array[Integer]) -> Array[Integer] + def notifications: () -> Notification::ActiveRecord_Associations_CollectionProxy + def notifications=: (Notification::ActiveRecord_Associations_CollectionProxy | Array[Notification]) -> (Notification::ActiveRecord_Associations_CollectionProxy | Array[Notification]) + def notification_ids: () -> Array[Integer] + def notification_ids=: (Array[Integer]) -> Array[Integer] + def subscriptions: () -> Subscription::ActiveRecord_Associations_CollectionProxy + def subscriptions=: (Subscription::ActiveRecord_Associations_CollectionProxy | Array[Subscription]) -> (Subscription::ActiveRecord_Associations_CollectionProxy | Array[Subscription]) + def subscription_ids: () -> Array[Integer] + def subscription_ids=: (Array[Integer]) -> Array[Integer] + def community_users: () -> CommunityUser::ActiveRecord_Associations_CollectionProxy + def community_users=: (CommunityUser::ActiveRecord_Associations_CollectionProxy | Array[CommunityUser]) -> (CommunityUser::ActiveRecord_Associations_CollectionProxy | Array[CommunityUser]) + def community_user_ids: () -> Array[Integer] + def community_user_ids=: (Array[Integer]) -> Array[Integer] + def flags: () -> Flag::ActiveRecord_Associations_CollectionProxy + def flags=: (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) -> (Flag::ActiveRecord_Associations_CollectionProxy | Array[Flag]) + def flag_ids: () -> Array[Integer] + def flag_ids=: (Array[Integer]) -> Array[Integer] + def error_logs: () -> ErrorLog::ActiveRecord_Associations_CollectionProxy + def error_logs=: (ErrorLog::ActiveRecord_Associations_CollectionProxy | Array[ErrorLog]) -> (ErrorLog::ActiveRecord_Associations_CollectionProxy | Array[ErrorLog]) + def error_log_ids: () -> Array[Integer] + def error_log_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edit_ids: () -> Array[Integer] + def suggested_edit_ids=: (Array[Integer]) -> Array[Integer] + def suggested_edits_decided: () -> SuggestedEdit::ActiveRecord_Associations_CollectionProxy + def suggested_edits_decided=: (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) -> (SuggestedEdit::ActiveRecord_Associations_CollectionProxy | Array[SuggestedEdit]) + def suggested_edits_decided_ids: () -> Array[Integer] + def suggested_edits_decided_ids=: (Array[Integer]) -> Array[Integer] + def audit_logs: () -> AuditLog::ActiveRecord_Associations_CollectionProxy + def audit_logs=: (AuditLog::ActiveRecord_Associations_CollectionProxy | Array[AuditLog]) -> (AuditLog::ActiveRecord_Associations_CollectionProxy | Array[AuditLog]) + def audit_log_ids: () -> Array[Integer] + def audit_log_ids=: (Array[Integer]) -> Array[Integer] + def audit_logs_related: () -> AuditLog::ActiveRecord_Associations_CollectionProxy + def audit_logs_related=: (AuditLog::ActiveRecord_Associations_CollectionProxy | Array[AuditLog]) -> (AuditLog::ActiveRecord_Associations_CollectionProxy | Array[AuditLog]) + def audit_logs_related_ids: () -> Array[Integer] + def audit_logs_related_ids=: (Array[Integer]) -> Array[Integer] + def mod_warning_author: () -> ModWarning::ActiveRecord_Associations_CollectionProxy + def mod_warning_author=: (ModWarning::ActiveRecord_Associations_CollectionProxy | Array[ModWarning]) -> (ModWarning::ActiveRecord_Associations_CollectionProxy | Array[ModWarning]) + def mod_warning_author_ids: () -> Array[Integer] + def mod_warning_author_ids=: (Array[Integer]) -> Array[Integer] + def comments: () -> Comment::ActiveRecord_Associations_CollectionProxy + def comments=: (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) -> (Comment::ActiveRecord_Associations_CollectionProxy | Array[Comment]) + def comment_ids: () -> Array[Integer] + def comment_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads_deleted: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads_deleted=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_threads_deleted_ids: () -> Array[Integer] + def comment_threads_deleted_ids=: (Array[Integer]) -> Array[Integer] + def comment_threads_locked: () -> CommentThread::ActiveRecord_Associations_CollectionProxy + def comment_threads_locked=: (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) -> (CommentThread::ActiveRecord_Associations_CollectionProxy | Array[CommentThread]) + def comment_threads_locked_ids: () -> Array[Integer] + def comment_threads_locked_ids=: (Array[Integer]) -> Array[Integer] + def category_filter_defaults: () -> CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy + def category_filter_defaults=: (CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy | Array[CategoryFilterDefault]) -> (CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy | Array[CategoryFilterDefault]) + def category_filter_default_ids: () -> Array[Integer] + def category_filter_default_ids=: (Array[Integer]) -> Array[Integer] + def filters: () -> Filter::ActiveRecord_Associations_CollectionProxy + def filters=: (Filter::ActiveRecord_Associations_CollectionProxy | Array[Filter]) -> (Filter::ActiveRecord_Associations_CollectionProxy | Array[Filter]) + def filter_ids: () -> Array[Integer] + def filter_ids=: (Array[Integer]) -> Array[Integer] + def sso_profile: () -> SsoProfile? + def sso_profile=: (SsoProfile?) -> SsoProfile? + def build_sso_profile: (untyped) -> SsoProfile + def create_sso_profile: (untyped) -> SsoProfile + def create_sso_profile!: (untyped) -> SsoProfile + def reload_sso_profile: () -> SsoProfile? + def community_user: () -> CommunityUser? + def community_user=: (CommunityUser?) -> CommunityUser? + def build_community_user: (untyped) -> CommunityUser + def create_community_user: (untyped) -> CommunityUser + def create_community_user!: (untyped) -> CommunityUser + def reload_community_user: () -> CommunityUser? + def avatar_attachment: () -> ActiveStorage::Attachment? + def avatar_attachment=: (ActiveStorage::Attachment?) -> ActiveStorage::Attachment? + def build_avatar_attachment: (untyped) -> ActiveStorage::Attachment + def create_avatar_attachment: (untyped) -> ActiveStorage::Attachment + def create_avatar_attachment!: (untyped) -> ActiveStorage::Attachment + def reload_avatar_attachment: () -> ActiveStorage::Attachment? + def avatar_blob: () -> ActiveStorage::Blob? + def avatar_blob=: (ActiveStorage::Blob?) -> ActiveStorage::Blob? + def build_avatar_blob: (untyped) -> ActiveStorage::Blob + def create_avatar_blob: (untyped) -> ActiveStorage::Blob + def create_avatar_blob!: (untyped) -> ActiveStorage::Blob + def reload_avatar_blob: () -> ActiveStorage::Blob? + def deleted_by: () -> User? + def deleted_by=: (User?) -> User? + def reload_deleted_by: () -> User? + def build_deleted_by: (untyped) -> User + def create_deleted_by: (untyped) -> User + def create_deleted_by!: (untyped) -> User + module GeneratedAssociationMethods + def avatar: () -> ActiveStorage::Attached::One + + def avatar=: (ActionDispatch::Http::UploadedFile) -> ActionDispatch::Http::UploadedFile + | (Rack::Test::UploadedFile) -> Rack::Test::UploadedFile + | (ActiveStorage::Blob) -> ActiveStorage::Blob + | (String) -> String + | ({ io: IO, filename: String, content_type: String? }) -> { io: IO, filename: String, content_type: String? } + | (nil) -> nil + end + include GeneratedAssociationMethods + + def self.active: () -> ActiveRecord_Relation + def self.deleted: () -> ActiveRecord_Relation + def self.with_attached_avatar: () -> ActiveRecord_Relation + + module GeneratedRelationMethods + def active: () -> ActiveRecord_Relation + + def deleted: () -> ActiveRecord_Relation + + def with_attached_avatar: () -> ActiveRecord_Relation + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[User, Integer] + include Enumerable[User] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[User, Integer] + end +end diff --git a/sig/rbs_rails/app/models/user_ability.rbs b/sig/rbs_rails/app/models/user_ability.rbs new file mode 100644 index 000000000..852b90ec9 --- /dev/null +++ b/sig/rbs_rails/app/models/user_ability.rbs @@ -0,0 +1,324 @@ +class UserAbility < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[UserAbility, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_user_id: () -> Integer? + + def community_user_id=: (Integer?) -> Integer? + + def community_user_id?: () -> bool + + def community_user_id_changed?: () -> bool + + def community_user_id_change: () -> [ Integer?, Integer? ] + + def community_user_id_will_change!: () -> void + + def community_user_id_was: () -> Integer? + + def community_user_id_previously_changed?: () -> bool + + def community_user_id_previous_change: () -> Array[Integer?]? + + def community_user_id_previously_was: () -> Integer? + + def community_user_id_before_last_save: () -> Integer? + + def community_user_id_change_to_be_saved: () -> Array[Integer?]? + + def community_user_id_in_database: () -> Integer? + + def saved_change_to_community_user_id: () -> Array[Integer?]? + + def saved_change_to_community_user_id?: () -> bool + + def will_save_change_to_community_user_id?: () -> bool + + def restore_community_user_id!: () -> void + + def clear_community_user_id_change: () -> void + + def ability_id: () -> Integer? + + def ability_id=: (Integer?) -> Integer? + + def ability_id?: () -> bool + + def ability_id_changed?: () -> bool + + def ability_id_change: () -> [ Integer?, Integer? ] + + def ability_id_will_change!: () -> void + + def ability_id_was: () -> Integer? + + def ability_id_previously_changed?: () -> bool + + def ability_id_previous_change: () -> Array[Integer?]? + + def ability_id_previously_was: () -> Integer? + + def ability_id_before_last_save: () -> Integer? + + def ability_id_change_to_be_saved: () -> Array[Integer?]? + + def ability_id_in_database: () -> Integer? + + def saved_change_to_ability_id: () -> Array[Integer?]? + + def saved_change_to_ability_id?: () -> bool + + def will_save_change_to_ability_id?: () -> bool + + def restore_ability_id!: () -> void + + def clear_ability_id_change: () -> void + + def is_suspended: () -> bool? + + def is_suspended=: (bool?) -> bool? + + def is_suspended?: () -> bool + + def is_suspended_changed?: () -> bool + + def is_suspended_change: () -> [ bool?, bool? ] + + def is_suspended_will_change!: () -> void + + def is_suspended_was: () -> bool? + + def is_suspended_previously_changed?: () -> bool + + def is_suspended_previous_change: () -> Array[bool?]? + + def is_suspended_previously_was: () -> bool? + + def is_suspended_before_last_save: () -> bool? + + def is_suspended_change_to_be_saved: () -> Array[bool?]? + + def is_suspended_in_database: () -> bool? + + def saved_change_to_is_suspended: () -> Array[bool?]? + + def saved_change_to_is_suspended?: () -> bool + + def will_save_change_to_is_suspended?: () -> bool + + def restore_is_suspended!: () -> void + + def clear_is_suspended_change: () -> void + + def suspension_end: () -> ActiveSupport::TimeWithZone? + + def suspension_end=: (ActiveSupport::TimeWithZone?) -> ActiveSupport::TimeWithZone? + + def suspension_end?: () -> bool + + def suspension_end_changed?: () -> bool + + def suspension_end_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def suspension_end_will_change!: () -> void + + def suspension_end_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_previously_changed?: () -> bool + + def suspension_end_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_previously_was: () -> ActiveSupport::TimeWithZone? + + def suspension_end_before_last_save: () -> ActiveSupport::TimeWithZone? + + def suspension_end_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def suspension_end_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_suspension_end: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_suspension_end?: () -> bool + + def will_save_change_to_suspension_end?: () -> bool + + def restore_suspension_end!: () -> void + + def clear_suspension_end_change: () -> void + + def suspension_message: () -> String? + + def suspension_message=: (String?) -> String? + + def suspension_message?: () -> bool + + def suspension_message_changed?: () -> bool + + def suspension_message_change: () -> [ String?, String? ] + + def suspension_message_will_change!: () -> void + + def suspension_message_was: () -> String? + + def suspension_message_previously_changed?: () -> bool + + def suspension_message_previous_change: () -> Array[String?]? + + def suspension_message_previously_was: () -> String? + + def suspension_message_before_last_save: () -> String? + + def suspension_message_change_to_be_saved: () -> Array[String?]? + + def suspension_message_in_database: () -> String? + + def saved_change_to_suspension_message: () -> Array[String?]? + + def saved_change_to_suspension_message?: () -> bool + + def will_save_change_to_suspension_message?: () -> bool + + def restore_suspension_message!: () -> void + + def clear_suspension_message_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def community_user: () -> CommunityUser + def community_user=: (CommunityUser?) -> CommunityUser? + def reload_community_user: () -> CommunityUser? + def build_community_user: (untyped) -> CommunityUser + def create_community_user: (untyped) -> CommunityUser + def create_community_user!: (untyped) -> CommunityUser + def ability: () -> Ability + def ability=: (Ability?) -> Ability? + def reload_ability: () -> Ability? + def build_ability: (untyped) -> Ability + def create_ability: (untyped) -> Ability + def create_ability!: (untyped) -> Ability + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[UserAbility, Integer] + include Enumerable[UserAbility] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[UserAbility, Integer] + end +end diff --git a/sig/rbs_rails/app/models/vote.rbs b/sig/rbs_rails/app/models/vote.rbs new file mode 100644 index 000000000..e538716ad --- /dev/null +++ b/sig/rbs_rails/app/models/vote.rbs @@ -0,0 +1,336 @@ +class Vote < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[Vote, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def vote_type: () -> Integer? + + def vote_type=: (Integer?) -> Integer? + + def vote_type?: () -> bool + + def vote_type_changed?: () -> bool + + def vote_type_change: () -> [ Integer?, Integer? ] + + def vote_type_will_change!: () -> void + + def vote_type_was: () -> Integer? + + def vote_type_previously_changed?: () -> bool + + def vote_type_previous_change: () -> Array[Integer?]? + + def vote_type_previously_was: () -> Integer? + + def vote_type_before_last_save: () -> Integer? + + def vote_type_change_to_be_saved: () -> Array[Integer?]? + + def vote_type_in_database: () -> Integer? + + def saved_change_to_vote_type: () -> Array[Integer?]? + + def saved_change_to_vote_type?: () -> bool + + def will_save_change_to_vote_type?: () -> bool + + def restore_vote_type!: () -> void + + def clear_vote_type_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + + def user_id: () -> Integer? + + def user_id=: (Integer?) -> Integer? + + def user_id?: () -> bool + + def user_id_changed?: () -> bool + + def user_id_change: () -> [ Integer?, Integer? ] + + def user_id_will_change!: () -> void + + def user_id_was: () -> Integer? + + def user_id_previously_changed?: () -> bool + + def user_id_previous_change: () -> Array[Integer?]? + + def user_id_previously_was: () -> Integer? + + def user_id_before_last_save: () -> Integer? + + def user_id_change_to_be_saved: () -> Array[Integer?]? + + def user_id_in_database: () -> Integer? + + def saved_change_to_user_id: () -> Array[Integer?]? + + def saved_change_to_user_id?: () -> bool + + def will_save_change_to_user_id?: () -> bool + + def restore_user_id!: () -> void + + def clear_user_id_change: () -> void + + def post_id: () -> Integer? + + def post_id=: (Integer?) -> Integer? + + def post_id?: () -> bool + + def post_id_changed?: () -> bool + + def post_id_change: () -> [ Integer?, Integer? ] + + def post_id_will_change!: () -> void + + def post_id_was: () -> Integer? + + def post_id_previously_changed?: () -> bool + + def post_id_previous_change: () -> Array[Integer?]? + + def post_id_previously_was: () -> Integer? + + def post_id_before_last_save: () -> Integer? + + def post_id_change_to_be_saved: () -> Array[Integer?]? + + def post_id_in_database: () -> Integer? + + def saved_change_to_post_id: () -> Array[Integer?]? + + def saved_change_to_post_id?: () -> bool + + def will_save_change_to_post_id?: () -> bool + + def restore_post_id!: () -> void + + def clear_post_id_change: () -> void + + def recv_user_id: () -> Integer? + + def recv_user_id=: (Integer?) -> Integer? + + def recv_user_id?: () -> bool + + def recv_user_id_changed?: () -> bool + + def recv_user_id_change: () -> [ Integer?, Integer? ] + + def recv_user_id_will_change!: () -> void + + def recv_user_id_was: () -> Integer? + + def recv_user_id_previously_changed?: () -> bool + + def recv_user_id_previous_change: () -> Array[Integer?]? + + def recv_user_id_previously_was: () -> Integer? + + def recv_user_id_before_last_save: () -> Integer? + + def recv_user_id_change_to_be_saved: () -> Array[Integer?]? + + def recv_user_id_in_database: () -> Integer? + + def saved_change_to_recv_user_id: () -> Array[Integer?]? + + def saved_change_to_recv_user_id?: () -> bool + + def will_save_change_to_recv_user_id?: () -> bool + + def restore_recv_user_id!: () -> void + + def clear_recv_user_id_change: () -> void + + def community_id: () -> Integer + + def community_id=: (Integer) -> Integer + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post + def user: () -> User + def user=: (User?) -> User? + def reload_user: () -> User? + def build_user: (untyped) -> User + def create_user: (untyped) -> User + def create_user!: (untyped) -> User + def recv_user: () -> User + def recv_user=: (User?) -> User? + def reload_recv_user: () -> User? + def build_recv_user: (untyped) -> User + def create_recv_user: (untyped) -> User + def create_recv_user!: (untyped) -> User + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[Vote, Integer] + include Enumerable[Vote] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[Vote, Integer] + end +end diff --git a/sig/rbs_rails/app/models/warning_template.rbs b/sig/rbs_rails/app/models/warning_template.rbs new file mode 100644 index 000000000..553d9014a --- /dev/null +++ b/sig/rbs_rails/app/models/warning_template.rbs @@ -0,0 +1,282 @@ +class WarningTemplate < ::ApplicationRecord + extend _ActiveRecord_Relation_ClassMethods[WarningTemplate, ActiveRecord_Relation, Integer] + + module GeneratedAttributeMethods + def id: () -> Integer + + def id=: (Integer) -> Integer + + def id?: () -> bool + + def id_changed?: () -> bool + + def id_change: () -> [ Integer?, Integer? ] + + def id_will_change!: () -> void + + def id_was: () -> Integer? + + def id_previously_changed?: () -> bool + + def id_previous_change: () -> Array[Integer?]? + + def id_previously_was: () -> Integer? + + def id_before_last_save: () -> Integer? + + def id_change_to_be_saved: () -> Array[Integer?]? + + def id_in_database: () -> Integer? + + def saved_change_to_id: () -> Array[Integer?]? + + def saved_change_to_id?: () -> bool + + def will_save_change_to_id?: () -> bool + + def restore_id!: () -> void + + def clear_id_change: () -> void + + def community_id: () -> Integer? + + def community_id=: (Integer?) -> Integer? + + def community_id?: () -> bool + + def community_id_changed?: () -> bool + + def community_id_change: () -> [ Integer?, Integer? ] + + def community_id_will_change!: () -> void + + def community_id_was: () -> Integer? + + def community_id_previously_changed?: () -> bool + + def community_id_previous_change: () -> Array[Integer?]? + + def community_id_previously_was: () -> Integer? + + def community_id_before_last_save: () -> Integer? + + def community_id_change_to_be_saved: () -> Array[Integer?]? + + def community_id_in_database: () -> Integer? + + def saved_change_to_community_id: () -> Array[Integer?]? + + def saved_change_to_community_id?: () -> bool + + def will_save_change_to_community_id?: () -> bool + + def restore_community_id!: () -> void + + def clear_community_id_change: () -> void + + def name: () -> String? + + def name=: (String?) -> String? + + def name?: () -> bool + + def name_changed?: () -> bool + + def name_change: () -> [ String?, String? ] + + def name_will_change!: () -> void + + def name_was: () -> String? + + def name_previously_changed?: () -> bool + + def name_previous_change: () -> Array[String?]? + + def name_previously_was: () -> String? + + def name_before_last_save: () -> String? + + def name_change_to_be_saved: () -> Array[String?]? + + def name_in_database: () -> String? + + def saved_change_to_name: () -> Array[String?]? + + def saved_change_to_name?: () -> bool + + def will_save_change_to_name?: () -> bool + + def restore_name!: () -> void + + def clear_name_change: () -> void + + def body: () -> String? + + def body=: (String?) -> String? + + def body?: () -> bool + + def body_changed?: () -> bool + + def body_change: () -> [ String?, String? ] + + def body_will_change!: () -> void + + def body_was: () -> String? + + def body_previously_changed?: () -> bool + + def body_previous_change: () -> Array[String?]? + + def body_previously_was: () -> String? + + def body_before_last_save: () -> String? + + def body_change_to_be_saved: () -> Array[String?]? + + def body_in_database: () -> String? + + def saved_change_to_body: () -> Array[String?]? + + def saved_change_to_body?: () -> bool + + def will_save_change_to_body?: () -> bool + + def restore_body!: () -> void + + def clear_body_change: () -> void + + def active: () -> bool? + + def active=: (bool?) -> bool? + + def active?: () -> bool + + def active_changed?: () -> bool + + def active_change: () -> [ bool?, bool? ] + + def active_will_change!: () -> void + + def active_was: () -> bool? + + def active_previously_changed?: () -> bool + + def active_previous_change: () -> Array[bool?]? + + def active_previously_was: () -> bool? + + def active_before_last_save: () -> bool? + + def active_change_to_be_saved: () -> Array[bool?]? + + def active_in_database: () -> bool? + + def saved_change_to_active: () -> Array[bool?]? + + def saved_change_to_active?: () -> bool + + def will_save_change_to_active?: () -> bool + + def restore_active!: () -> void + + def clear_active_change: () -> void + + def created_at: () -> ActiveSupport::TimeWithZone + + def created_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def created_at?: () -> bool + + def created_at_changed?: () -> bool + + def created_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def created_at_will_change!: () -> void + + def created_at_was: () -> ActiveSupport::TimeWithZone? + + def created_at_previously_changed?: () -> bool + + def created_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def created_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def created_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def created_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_created_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_created_at?: () -> bool + + def will_save_change_to_created_at?: () -> bool + + def restore_created_at!: () -> void + + def clear_created_at_change: () -> void + + def updated_at: () -> ActiveSupport::TimeWithZone + + def updated_at=: (ActiveSupport::TimeWithZone) -> ActiveSupport::TimeWithZone + + def updated_at?: () -> bool + + def updated_at_changed?: () -> bool + + def updated_at_change: () -> [ ActiveSupport::TimeWithZone?, ActiveSupport::TimeWithZone? ] + + def updated_at_will_change!: () -> void + + def updated_at_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_previously_changed?: () -> bool + + def updated_at_previous_change: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_previously_was: () -> ActiveSupport::TimeWithZone? + + def updated_at_before_last_save: () -> ActiveSupport::TimeWithZone? + + def updated_at_change_to_be_saved: () -> Array[ActiveSupport::TimeWithZone?]? + + def updated_at_in_database: () -> ActiveSupport::TimeWithZone? + + def saved_change_to_updated_at: () -> Array[ActiveSupport::TimeWithZone?]? + + def saved_change_to_updated_at?: () -> bool + + def will_save_change_to_updated_at?: () -> bool + + def restore_updated_at!: () -> void + + def clear_updated_at_change: () -> void + end + include GeneratedAttributeMethods + + def community: () -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community + module GeneratedAssociationMethods + end + include GeneratedAssociationMethods + + module GeneratedRelationMethods + end + + class ActiveRecord_Relation < ::ActiveRecord::Relation + include GeneratedRelationMethods + include _ActiveRecord_Relation[WarningTemplate, Integer] + include Enumerable[WarningTemplate] + end + + class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy + include GeneratedRelationMethods + include _ActiveRecord_Relation[WarningTemplate, Integer] + end +end diff --git a/sig/rbs_rails/model_dependencies.rbs b/sig/rbs_rails/model_dependencies.rbs new file mode 100644 index 000000000..6c09fab39 --- /dev/null +++ b/sig/rbs_rails/model_dependencies.rbs @@ -0,0 +1,76 @@ +class ApplicationRecord < ActiveRecord::Base +end +class Post::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Vote::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Notification::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Subscription::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class CommunityUser::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Flag::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class ErrorLog::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class SuggestedEdit::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class AuditLog::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class ModWarning::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Comment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class CommentThread::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class CategoryFilterDefault::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Filter::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class PostHistory::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Reaction::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class CategoryPostType::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Category::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class PostType::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class ThreadFollower::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class SiteSetting::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class UserAbility::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class PostHistoryTag::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class Tag::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class TagWithPath < Tag +end +class TagWithPath::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class TagSynonym::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +module MicroAuth +end +class MicroAuth::Token::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class User::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +module ActiveStorage +end +class ActiveStorage::Record < ActiveRecord::Base +end +class ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy +end +class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation +end +class ActiveRecord::Relation < Object +end +module ActiveRecord::Associations +end diff --git a/sig/rbs_rails/path_helpers.rbs b/sig/rbs_rails/path_helpers.rbs new file mode 100644 index 000000000..022ec7f99 --- /dev/null +++ b/sig/rbs_rails/path_helpers.rbs @@ -0,0 +1,596 @@ +interface _RbsRailsPathHelpers + def rails_mailers_path: (*untyped) -> String + def rails_info_properties_path: (*untyped) -> String + def rails_info_routes_path: (*untyped) -> String + def rails_info_path: (*untyped) -> String + def new_user_session_path: (*untyped) -> String + def user_session_path: (*untyped) -> String + def destroy_user_session_path: (*untyped) -> String + def new_user_password_path: (*untyped) -> String + def edit_user_password_path: (*untyped) -> String + def user_password_path: (*untyped) -> String + def cancel_user_registration_path: (*untyped) -> String + def new_user_registration_path: (*untyped) -> String + def edit_user_registration_path: (*untyped) -> String + def user_registration_path: (*untyped) -> String + def new_user_confirmation_path: (*untyped) -> String + def user_confirmation_path: (*untyped) -> String + def new_user_unlock_path: (*untyped) -> String + def user_unlock_path: (*untyped) -> String + def new_saml_user_session_path: (*untyped) -> String + def saml_user_session_path: (*untyped) -> String + def destroy_saml_user_session_path: (*untyped) -> String + def metadata_user_session_path: (*untyped) -> String + def idp_destroy_saml_user_session_path: (*untyped) -> String + def login_verify_2fa_path: (*untyped) -> String + def login_verify_code_path: (*untyped) -> String + def sign_in_request_from_other_path: (*untyped) -> String + def sign_in_return_from_base_path: (*untyped) -> String + def after_sign_in_check_path: (*untyped) -> String + def root_path: (*untyped) -> String + def letter_opener_web_path: (*untyped) -> String + def admin_path: (*untyped) -> String + def admin_error_reports_path: (*untyped) -> String + def site_settings_path: (*untyped) -> String + def global_settings_path: (*untyped) -> String + def site_setting_path: (*untyped) -> String + def update_site_setting_path: (*untyped) -> String + def soft_delete_user_path: (*untyped) -> String + def admin_privileges_path: (*untyped) -> String + def admin_privilege_path: (*untyped) -> String + def admin_update_privilege_path: (*untyped) -> String + def moderator_email_path: (*untyped) -> String + def send_moderator_email_path: (*untyped) -> String + def email_all_path: (*untyped) -> String + def send_all_email_path: (*untyped) -> String + def audit_log_path: (*untyped) -> String + def new_site_path: (*untyped) -> String + def create_site_path: (*untyped) -> String + def setup_path: (*untyped) -> String + def setup_save_path: (*untyped) -> String + def stop_impersonating_path: (*untyped) -> String + def verify_elevation_path: (*untyped) -> String + def impersonate_path: (*untyped) -> String + def start_impersonating_path: (*untyped) -> String + def post_types_path: (*untyped) -> String + def new_post_type_path: (*untyped) -> String + def create_post_type_path: (*untyped) -> String + def edit_post_type_path: (*untyped) -> String + def update_post_type_path: (*untyped) -> String + def close_reasons_path: (*untyped) -> String + def close_reason_path: (*untyped) -> String + def update_close_reason_path: (*untyped) -> String + def new_close_reason_path: (*untyped) -> String + def create_close_reason_path: (*untyped) -> String + def tag_sets_path: (*untyped) -> String + def global_tag_sets_path: (*untyped) -> String + def tag_set_path: (*untyped) -> String + def update_tag_set_path: (*untyped) -> String + def licenses_path: (*untyped) -> String + def new_license_path: (*untyped) -> String + def create_license_path: (*untyped) -> String + def edit_license_path: (*untyped) -> String + def update_license_path: (*untyped) -> String + def toggle_license_path: (*untyped) -> String + def moderator_path: (*untyped) -> String + def recently_deleted_posts_path: (*untyped) -> String + def recent_comments_path: (*untyped) -> String + def flag_queue_path: (*untyped) -> String + def handled_flags_path: (*untyped) -> String + def escalated_flags_path: (*untyped) -> String + def destroy_user_path: (*untyped) -> String + def mod_vote_summary_path: (*untyped) -> String + def resolve_flag_path: (*untyped) -> String + def escalate_flag_path: (*untyped) -> String + def pinned_links_path: (*untyped) -> String + def new_pinned_link_path: (*untyped) -> String + def create_pinned_link_path: (*untyped) -> String + def edit_pinned_link_path: (*untyped) -> String + def update_pinned_link_path: (*untyped) -> String + def questions_lottery_path: (*untyped) -> String + def reactions_path: (*untyped) -> String + def edit_reaction_path: (*untyped) -> String + def update_reaction_path: (*untyped) -> String + def new_reaction_path: (*untyped) -> String + def create_reaction_path: (*untyped) -> String + def add_reaction_path: (*untyped) -> String + def retract_reaction_path: (*untyped) -> String + def suggested_edit_path: (*untyped) -> String + def suggested_edit_approve_path: (*untyped) -> String + def suggested_edit_reject_path: (*untyped) -> String + def new_post_path: (*untyped) -> String + def new_response_path: (*untyped) -> String + def new_category_post_path: (*untyped) -> String + def create_post_path: (*untyped) -> String + def create_response_path: (*untyped) -> String + def create_category_post_path: (*untyped) -> String + def search_path: (*untyped) -> String + def promoted_posts_path: (*untyped) -> String + def post_types_list_path: (*untyped) -> String + def upload_path: (*untyped) -> String + def save_draft_path: (*untyped) -> String + def delete_draft_path: (*untyped) -> String + def post_path: (*untyped) -> String + def post_history_path: (*untyped) -> String + def edit_post_path: (*untyped) -> String + def update_post_path: (*untyped) -> String + def close_post_path: (*untyped) -> String + def reopen_post_path: (*untyped) -> String + def delete_post_path: (*untyped) -> String + def restore_post_path: (*untyped) -> String + def change_category_path: (*untyped) -> String + def post_comments_allowance_toggle_path: (*untyped) -> String + def post_lock_path: (*untyped) -> String + def post_unlock_path: (*untyped) -> String + def post_feature_path: (*untyped) -> String + def promote_post_path: (*untyped) -> String + def remove_post_promotion_path: (*untyped) -> String + def answer_post_path: (*untyped) -> String + def policy_path: (*untyped) -> String + def help_path: (*untyped) -> String + def tags_path: (*untyped) -> String + def two_factor_status_path: (*untyped) -> String + def two_factor_enable_path: (*untyped) -> String + def two_factor_enable_code_path: (*untyped) -> String + def two_factor_confirm_enable_path: (*untyped) -> String + def two_factor_disable_code_path: (*untyped) -> String + def two_factor_confirm_disable_path: (*untyped) -> String + def two_factor_send_disable_email_path: (*untyped) -> String + def two_factor_disable_link_path: (*untyped) -> String + def two_factor_confirm_disable_link_path: (*untyped) -> String + def users_path: (*untyped) -> String + def stack_redirect_path: (*untyped) -> String + def claim_stack_content_path: (*untyped) -> String + def qr_login_code_path: (*untyped) -> String + def qr_login_path: (*untyped) -> String + def users_me_path: (*untyped) -> String + def user_preferences_path: (*untyped) -> String + def set_user_preference_path: (*untyped) -> String + def user_filters_path: (*untyped) -> String + def default_filter_path: (*untyped) -> String + def set_user_filter_path: (*untyped) -> String + def delete_user_filter_path: (*untyped) -> String + def notifications_path: (*untyped) -> String + def edit_user_profile_path: (*untyped) -> String + def update_user_profile_path: (*untyped) -> String + def my_vote_summary_path: (*untyped) -> String + def specific_auto_avatar_path: (*untyped) -> String + def user_disconnect_sso_path: (*untyped) -> String + def user_confirm_disconnect_sso_path: (*untyped) -> String + def user_path: (*untyped) -> String + def flag_history_path: (*untyped) -> String + def user_activity_path: (*untyped) -> String + def mod_user_path: (*untyped) -> String + def user_posts_path: (*untyped) -> String + def vote_summary_path: (*untyped) -> String + def user_privileges_path: (*untyped) -> String + def user_privilege_action_path: (*untyped) -> String + def toggle_user_role_path: (*untyped) -> String + def user_annotations_path: (*untyped) -> String + def annotate_user_path: (*untyped) -> String + def full_user_log_path: (*untyped) -> String + def hellban_user_path: (*untyped) -> String + def user_auto_avatar_path: (*untyped) -> String + def read_notifications_path: (*untyped) -> String + def read_all_notifications_path: (*untyped) -> String + def create_vote_path: (*untyped) -> String + def destroy_vote_path: (*untyped) -> String + def convert_to_comment_path: (*untyped) -> String + def new_flag_path: (*untyped) -> String + def create_comment_thread_path: (*untyped) -> String + def thread_pingable_path: (*untyped) -> String + def create_comment_path: (*untyped) -> String + def rename_comment_thread_path: (*untyped) -> String + def restrict_comment_thread_path: (*untyped) -> String + def unrestrict_comment_thread_path: (*untyped) -> String + def comment_thread_followers_path: (*untyped) -> String + def post_comments_path: (*untyped) -> String + def follow_post_comments_path: (*untyped) -> String + def comment_path: (*untyped) -> String + def comment_thread_path: (*untyped) -> String + def update_comment_path: (*untyped) -> String + def delete_comment_path: (*untyped) -> String + def undelete_comment_path: (*untyped) -> String + def new_subscription_path: (*untyped) -> String + def create_subscription_path: (*untyped) -> String + def subscriptions_path: (*untyped) -> String + def enable_subscription_path: (*untyped) -> String + def destroy_subscription_path: (*untyped) -> String + def users_report_path: (*untyped) -> String + def subscriptions_report_path: (*untyped) -> String + def posts_report_path: (*untyped) -> String + def reactions_report_path: (*untyped) -> String + def help_center_path: (*untyped) -> String + def categories_path: (*untyped) -> String + def new_category_path: (*untyped) -> String + def create_category_path: (*untyped) -> String + def set_default_filter_path: (*untyped) -> String + def category_path: (*untyped) -> String + def edit_category_path: (*untyped) -> String + def update_category_path: (*untyped) -> String + def edit_category_post_types_path: (*untyped) -> String + def update_category_post_types_path: (*untyped) -> String + def destroy_category_post_type_path: (*untyped) -> String + def destroy_category_path: (*untyped) -> String + def category_post_types_path: (*untyped) -> String + def category_feed_path: (*untyped) -> String + def category_tags_path: (*untyped) -> String + def new_tag_path: (*untyped) -> String + def create_tag_path: (*untyped) -> String + def tag_path: (*untyped) -> String + def tag_children_path: (*untyped) -> String + def edit_tag_path: (*untyped) -> String + def update_tag_path: (*untyped) -> String + def rename_tag_path: (*untyped) -> String + def select_tag_merge_path: (*untyped) -> String + def merge_tag_path: (*untyped) -> String + def nuke_tag_warning_path: (*untyped) -> String + def nuke_tag_path: (*untyped) -> String + def suggested_edits_queue_path: (*untyped) -> String + def current_mod_warning_path: (*untyped) -> String + def current_mod_warning_approve_path: (*untyped) -> String + def mod_warning_log_path: (*untyped) -> String + def new_mod_warning_path: (*untyped) -> String + def create_mod_warning_path: (*untyped) -> String + def lift_mod_warning_path: (*untyped) -> String + def uploaded_path: (*untyped) -> String + def dashboard_path: (*untyped) -> String + def global_users_report_path: (*untyped) -> String + def global_subs_report_path: (*untyped) -> String + def global_posts_report_path: (*untyped) -> String + def ads_path: (*untyped) -> String + def codidact_ads_path: (*untyped) -> String + def community_ads_path: (*untyped) -> String + def random_question_ads_path: (*untyped) -> String + def promoted_post_ads_path: (*untyped) -> String + def specific_question_ads_path: (*untyped) -> String + def specific_category_ads_path: (*untyped) -> String + def tour_path: (*untyped) -> String + def tour_q1_path: (*untyped) -> String + def tour_q2_path: (*untyped) -> String + def tour_q3_path: (*untyped) -> String + def tour_more_path: (*untyped) -> String + def tour_end_path: (*untyped) -> String + def abilities_path: (*untyped) -> String + def abilities_recalc_path: (*untyped) -> String + def ability_path: (*untyped) -> String + def donate_path: (*untyped) -> String + def donation_intent_path: (*untyped) -> String + def donation_success_path: (*untyped) -> String + def donation_callback_path: (*untyped) -> String + def initiate_oauth_path: (*untyped) -> String + def approve_oauth_path: (*untyped) -> String + def reject_oauth_path: (*untyped) -> String + def oauth_token_path: (*untyped) -> String + def oauth_apps_path: (*untyped) -> String + def new_oauth_app_path: (*untyped) -> String + def create_oauth_app_path: (*untyped) -> String + def oauth_app_path: (*untyped) -> String + def edit_oauth_app_path: (*untyped) -> String + def update_oauth_app_path: (*untyped) -> String + def deactivate_oauth_app_path: (*untyped) -> String + def osd_path: (*untyped) -> String + def fc_communities_path: (*untyped) -> String + def rails_postmark_inbound_emails_path: (*untyped) -> String + def rails_relay_inbound_emails_path: (*untyped) -> String + def rails_sendgrid_inbound_emails_path: (*untyped) -> String + def rails_mandrill_inbound_health_check_path: (*untyped) -> String + def rails_mandrill_inbound_emails_path: (*untyped) -> String + def rails_mailgun_inbound_emails_path: (*untyped) -> String + def rails_conductor_inbound_emails_path: (*untyped) -> String + def new_rails_conductor_inbound_email_path: (*untyped) -> String + def edit_rails_conductor_inbound_email_path: (*untyped) -> String + def rails_conductor_inbound_email_path: (*untyped) -> String + def new_rails_conductor_inbound_email_source_path: (*untyped) -> String + def rails_conductor_inbound_email_sources_path: (*untyped) -> String + def rails_conductor_inbound_email_reroute_path: (*untyped) -> String + def rails_conductor_inbound_email_incinerate_path: (*untyped) -> String + def rails_service_blob_path: (*untyped) -> String + def rails_service_blob_proxy_path: (*untyped) -> String + def rails_blob_representation_path: (*untyped) -> String + def rails_blob_representation_proxy_path: (*untyped) -> String + def rails_disk_service_path: (*untyped) -> String + def update_rails_disk_service_path: (*untyped) -> String + def rails_direct_uploads_path: (*untyped) -> String + def rails_representation_path: (*untyped) -> String + def rails_blob_path: (*untyped) -> String + def rails_storage_proxy_path: (*untyped) -> String + def rails_storage_redirect_path: (*untyped) -> String + def rails_mailers_url: (*untyped) -> String + def rails_info_properties_url: (*untyped) -> String + def rails_info_routes_url: (*untyped) -> String + def rails_info_url: (*untyped) -> String + def new_user_session_url: (*untyped) -> String + def user_session_url: (*untyped) -> String + def destroy_user_session_url: (*untyped) -> String + def new_user_password_url: (*untyped) -> String + def edit_user_password_url: (*untyped) -> String + def user_password_url: (*untyped) -> String + def cancel_user_registration_url: (*untyped) -> String + def new_user_registration_url: (*untyped) -> String + def edit_user_registration_url: (*untyped) -> String + def user_registration_url: (*untyped) -> String + def new_user_confirmation_url: (*untyped) -> String + def user_confirmation_url: (*untyped) -> String + def new_user_unlock_url: (*untyped) -> String + def user_unlock_url: (*untyped) -> String + def new_saml_user_session_url: (*untyped) -> String + def saml_user_session_url: (*untyped) -> String + def destroy_saml_user_session_url: (*untyped) -> String + def metadata_user_session_url: (*untyped) -> String + def idp_destroy_saml_user_session_url: (*untyped) -> String + def login_verify_2fa_url: (*untyped) -> String + def login_verify_code_url: (*untyped) -> String + def sign_in_request_from_other_url: (*untyped) -> String + def sign_in_return_from_base_url: (*untyped) -> String + def after_sign_in_check_url: (*untyped) -> String + def root_url: (*untyped) -> String + def letter_opener_web_url: (*untyped) -> String + def admin_url: (*untyped) -> String + def admin_error_reports_url: (*untyped) -> String + def site_settings_url: (*untyped) -> String + def global_settings_url: (*untyped) -> String + def site_setting_url: (*untyped) -> String + def update_site_setting_url: (*untyped) -> String + def soft_delete_user_url: (*untyped) -> String + def admin_privileges_url: (*untyped) -> String + def admin_privilege_url: (*untyped) -> String + def admin_update_privilege_url: (*untyped) -> String + def moderator_email_url: (*untyped) -> String + def send_moderator_email_url: (*untyped) -> String + def email_all_url: (*untyped) -> String + def send_all_email_url: (*untyped) -> String + def audit_log_url: (*untyped) -> String + def new_site_url: (*untyped) -> String + def create_site_url: (*untyped) -> String + def setup_url: (*untyped) -> String + def setup_save_url: (*untyped) -> String + def stop_impersonating_url: (*untyped) -> String + def verify_elevation_url: (*untyped) -> String + def impersonate_url: (*untyped) -> String + def start_impersonating_url: (*untyped) -> String + def post_types_url: (*untyped) -> String + def new_post_type_url: (*untyped) -> String + def create_post_type_url: (*untyped) -> String + def edit_post_type_url: (*untyped) -> String + def update_post_type_url: (*untyped) -> String + def close_reasons_url: (*untyped) -> String + def close_reason_url: (*untyped) -> String + def update_close_reason_url: (*untyped) -> String + def new_close_reason_url: (*untyped) -> String + def create_close_reason_url: (*untyped) -> String + def tag_sets_url: (*untyped) -> String + def global_tag_sets_url: (*untyped) -> String + def tag_set_url: (*untyped) -> String + def update_tag_set_url: (*untyped) -> String + def licenses_url: (*untyped) -> String + def new_license_url: (*untyped) -> String + def create_license_url: (*untyped) -> String + def edit_license_url: (*untyped) -> String + def update_license_url: (*untyped) -> String + def toggle_license_url: (*untyped) -> String + def moderator_url: (*untyped) -> String + def recently_deleted_posts_url: (*untyped) -> String + def recent_comments_url: (*untyped) -> String + def flag_queue_url: (*untyped) -> String + def handled_flags_url: (*untyped) -> String + def escalated_flags_url: (*untyped) -> String + def destroy_user_url: (*untyped) -> String + def mod_vote_summary_url: (*untyped) -> String + def resolve_flag_url: (*untyped) -> String + def escalate_flag_url: (*untyped) -> String + def pinned_links_url: (*untyped) -> String + def new_pinned_link_url: (*untyped) -> String + def create_pinned_link_url: (*untyped) -> String + def edit_pinned_link_url: (*untyped) -> String + def update_pinned_link_url: (*untyped) -> String + def questions_lottery_url: (*untyped) -> String + def reactions_url: (*untyped) -> String + def edit_reaction_url: (*untyped) -> String + def update_reaction_url: (*untyped) -> String + def new_reaction_url: (*untyped) -> String + def create_reaction_url: (*untyped) -> String + def add_reaction_url: (*untyped) -> String + def retract_reaction_url: (*untyped) -> String + def suggested_edit_url: (*untyped) -> String + def suggested_edit_approve_url: (*untyped) -> String + def suggested_edit_reject_url: (*untyped) -> String + def new_post_url: (*untyped) -> String + def new_response_url: (*untyped) -> String + def new_category_post_url: (*untyped) -> String + def create_post_url: (*untyped) -> String + def create_response_url: (*untyped) -> String + def create_category_post_url: (*untyped) -> String + def search_url: (*untyped) -> String + def promoted_posts_url: (*untyped) -> String + def post_types_list_url: (*untyped) -> String + def upload_url: (*untyped) -> String + def save_draft_url: (*untyped) -> String + def delete_draft_url: (*untyped) -> String + def post_url: (*untyped) -> String + def post_history_url: (*untyped) -> String + def edit_post_url: (*untyped) -> String + def update_post_url: (*untyped) -> String + def close_post_url: (*untyped) -> String + def reopen_post_url: (*untyped) -> String + def delete_post_url: (*untyped) -> String + def restore_post_url: (*untyped) -> String + def change_category_url: (*untyped) -> String + def post_comments_allowance_toggle_url: (*untyped) -> String + def post_lock_url: (*untyped) -> String + def post_unlock_url: (*untyped) -> String + def post_feature_url: (*untyped) -> String + def promote_post_url: (*untyped) -> String + def remove_post_promotion_url: (*untyped) -> String + def answer_post_url: (*untyped) -> String + def policy_url: (*untyped) -> String + def help_url: (*untyped) -> String + def tags_url: (*untyped) -> String + def two_factor_status_url: (*untyped) -> String + def two_factor_enable_url: (*untyped) -> String + def two_factor_enable_code_url: (*untyped) -> String + def two_factor_confirm_enable_url: (*untyped) -> String + def two_factor_disable_code_url: (*untyped) -> String + def two_factor_confirm_disable_url: (*untyped) -> String + def two_factor_send_disable_email_url: (*untyped) -> String + def two_factor_disable_link_url: (*untyped) -> String + def two_factor_confirm_disable_link_url: (*untyped) -> String + def users_url: (*untyped) -> String + def stack_redirect_url: (*untyped) -> String + def claim_stack_content_url: (*untyped) -> String + def qr_login_code_url: (*untyped) -> String + def qr_login_url: (*untyped) -> String + def users_me_url: (*untyped) -> String + def user_preferences_url: (*untyped) -> String + def set_user_preference_url: (*untyped) -> String + def user_filters_url: (*untyped) -> String + def default_filter_url: (*untyped) -> String + def set_user_filter_url: (*untyped) -> String + def delete_user_filter_url: (*untyped) -> String + def notifications_url: (*untyped) -> String + def edit_user_profile_url: (*untyped) -> String + def update_user_profile_url: (*untyped) -> String + def my_vote_summary_url: (*untyped) -> String + def specific_auto_avatar_url: (*untyped) -> String + def user_disconnect_sso_url: (*untyped) -> String + def user_confirm_disconnect_sso_url: (*untyped) -> String + def user_url: (*untyped) -> String + def flag_history_url: (*untyped) -> String + def user_activity_url: (*untyped) -> String + def mod_user_url: (*untyped) -> String + def user_posts_url: (*untyped) -> String + def vote_summary_url: (*untyped) -> String + def user_privileges_url: (*untyped) -> String + def user_privilege_action_url: (*untyped) -> String + def toggle_user_role_url: (*untyped) -> String + def user_annotations_url: (*untyped) -> String + def annotate_user_url: (*untyped) -> String + def full_user_log_url: (*untyped) -> String + def hellban_user_url: (*untyped) -> String + def user_auto_avatar_url: (*untyped) -> String + def read_notifications_url: (*untyped) -> String + def read_all_notifications_url: (*untyped) -> String + def create_vote_url: (*untyped) -> String + def destroy_vote_url: (*untyped) -> String + def convert_to_comment_url: (*untyped) -> String + def new_flag_url: (*untyped) -> String + def create_comment_thread_url: (*untyped) -> String + def thread_pingable_url: (*untyped) -> String + def create_comment_url: (*untyped) -> String + def rename_comment_thread_url: (*untyped) -> String + def restrict_comment_thread_url: (*untyped) -> String + def unrestrict_comment_thread_url: (*untyped) -> String + def comment_thread_followers_url: (*untyped) -> String + def post_comments_url: (*untyped) -> String + def follow_post_comments_url: (*untyped) -> String + def comment_url: (*untyped) -> String + def comment_thread_url: (*untyped) -> String + def update_comment_url: (*untyped) -> String + def delete_comment_url: (*untyped) -> String + def undelete_comment_url: (*untyped) -> String + def new_subscription_url: (*untyped) -> String + def create_subscription_url: (*untyped) -> String + def subscriptions_url: (*untyped) -> String + def enable_subscription_url: (*untyped) -> String + def destroy_subscription_url: (*untyped) -> String + def users_report_url: (*untyped) -> String + def subscriptions_report_url: (*untyped) -> String + def posts_report_url: (*untyped) -> String + def reactions_report_url: (*untyped) -> String + def help_center_url: (*untyped) -> String + def categories_url: (*untyped) -> String + def new_category_url: (*untyped) -> String + def create_category_url: (*untyped) -> String + def set_default_filter_url: (*untyped) -> String + def category_url: (*untyped) -> String + def edit_category_url: (*untyped) -> String + def update_category_url: (*untyped) -> String + def edit_category_post_types_url: (*untyped) -> String + def update_category_post_types_url: (*untyped) -> String + def destroy_category_post_type_url: (*untyped) -> String + def destroy_category_url: (*untyped) -> String + def category_post_types_url: (*untyped) -> String + def category_feed_url: (*untyped) -> String + def category_tags_url: (*untyped) -> String + def new_tag_url: (*untyped) -> String + def create_tag_url: (*untyped) -> String + def tag_url: (*untyped) -> String + def tag_children_url: (*untyped) -> String + def edit_tag_url: (*untyped) -> String + def update_tag_url: (*untyped) -> String + def rename_tag_url: (*untyped) -> String + def select_tag_merge_url: (*untyped) -> String + def merge_tag_url: (*untyped) -> String + def nuke_tag_warning_url: (*untyped) -> String + def nuke_tag_url: (*untyped) -> String + def suggested_edits_queue_url: (*untyped) -> String + def current_mod_warning_url: (*untyped) -> String + def current_mod_warning_approve_url: (*untyped) -> String + def mod_warning_log_url: (*untyped) -> String + def new_mod_warning_url: (*untyped) -> String + def create_mod_warning_url: (*untyped) -> String + def lift_mod_warning_url: (*untyped) -> String + def uploaded_url: (*untyped) -> String + def dashboard_url: (*untyped) -> String + def global_users_report_url: (*untyped) -> String + def global_subs_report_url: (*untyped) -> String + def global_posts_report_url: (*untyped) -> String + def ads_url: (*untyped) -> String + def codidact_ads_url: (*untyped) -> String + def community_ads_url: (*untyped) -> String + def random_question_ads_url: (*untyped) -> String + def promoted_post_ads_url: (*untyped) -> String + def specific_question_ads_url: (*untyped) -> String + def specific_category_ads_url: (*untyped) -> String + def tour_url: (*untyped) -> String + def tour_q1_url: (*untyped) -> String + def tour_q2_url: (*untyped) -> String + def tour_q3_url: (*untyped) -> String + def tour_more_url: (*untyped) -> String + def tour_end_url: (*untyped) -> String + def abilities_url: (*untyped) -> String + def abilities_recalc_url: (*untyped) -> String + def ability_url: (*untyped) -> String + def donate_url: (*untyped) -> String + def donation_intent_url: (*untyped) -> String + def donation_success_url: (*untyped) -> String + def donation_callback_url: (*untyped) -> String + def initiate_oauth_url: (*untyped) -> String + def approve_oauth_url: (*untyped) -> String + def reject_oauth_url: (*untyped) -> String + def oauth_token_url: (*untyped) -> String + def oauth_apps_url: (*untyped) -> String + def new_oauth_app_url: (*untyped) -> String + def create_oauth_app_url: (*untyped) -> String + def oauth_app_url: (*untyped) -> String + def edit_oauth_app_url: (*untyped) -> String + def update_oauth_app_url: (*untyped) -> String + def deactivate_oauth_app_url: (*untyped) -> String + def osd_url: (*untyped) -> String + def fc_communities_url: (*untyped) -> String + def rails_postmark_inbound_emails_url: (*untyped) -> String + def rails_relay_inbound_emails_url: (*untyped) -> String + def rails_sendgrid_inbound_emails_url: (*untyped) -> String + def rails_mandrill_inbound_health_check_url: (*untyped) -> String + def rails_mandrill_inbound_emails_url: (*untyped) -> String + def rails_mailgun_inbound_emails_url: (*untyped) -> String + def rails_conductor_inbound_emails_url: (*untyped) -> String + def new_rails_conductor_inbound_email_url: (*untyped) -> String + def edit_rails_conductor_inbound_email_url: (*untyped) -> String + def rails_conductor_inbound_email_url: (*untyped) -> String + def new_rails_conductor_inbound_email_source_url: (*untyped) -> String + def rails_conductor_inbound_email_sources_url: (*untyped) -> String + def rails_conductor_inbound_email_reroute_url: (*untyped) -> String + def rails_conductor_inbound_email_incinerate_url: (*untyped) -> String + def rails_service_blob_url: (*untyped) -> String + def rails_service_blob_proxy_url: (*untyped) -> String + def rails_blob_representation_url: (*untyped) -> String + def rails_blob_representation_proxy_url: (*untyped) -> String + def rails_disk_service_url: (*untyped) -> String + def update_rails_disk_service_url: (*untyped) -> String + def rails_direct_uploads_url: (*untyped) -> String + def rails_representation_url: (*untyped) -> String + def rails_blob_url: (*untyped) -> String + def rails_storage_proxy_url: (*untyped) -> String + def rails_storage_redirect_url: (*untyped) -> String +end From 0ede7418691e1708d8ac5ddfc28471bae2cf5dc3 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 21:39:31 +0200 Subject: [PATCH 03/15] Add RBS collections --- rbs_collection.lock.yaml | 274 +++++++++++++++++++++++++++++++++++++++ rbs_collection.yaml | 20 +++ 2 files changed, 294 insertions(+) create mode 100644 rbs_collection.lock.yaml create mode 100644 rbs_collection.yaml diff --git a/rbs_collection.lock.yaml b/rbs_collection.lock.yaml new file mode 100644 index 000000000..fa2244e53 --- /dev/null +++ b/rbs_collection.lock.yaml @@ -0,0 +1,274 @@ +--- +sources: +- type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +path: ".gem_rbs_collection" +gems: +- name: actionmailer + version: '7.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: actionpack + version: '6.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: actionview + version: '6.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: activejob + version: '6.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: activemodel + version: '7.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: activerecord + version: '7.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: activestorage + version: '6.1' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: activesupport + version: '7.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: ast + version: '2.4' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: bcrypt + version: '3.1' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: cgi + version: '0' + source: + type: stdlib +- name: chunky_png + version: 1.4.0 + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: concurrent-ruby + version: '1.1' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: date + version: '0' + source: + type: stdlib +- name: globalid + version: '1.1' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: hashie + version: '5.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: i18n + version: '1.10' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: json + version: '0' + source: + type: stdlib +- name: listen + version: '3.2' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: logger + version: '0' + source: + type: stdlib +- name: mail + version: '2.8' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: minitest + version: '0' + source: + type: stdlib +- name: monitor + version: '0' + source: + type: stdlib +- name: mutex_m + version: '0' + source: + type: stdlib +- name: nokogiri + version: '1.11' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: openssl + version: '0' + source: + type: stdlib +- name: parallel + version: '1.20' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: rack + version: '2.2' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: rails-dom-testing + version: '2.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: railties + version: '6.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: rainbow + version: '3.0' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: redis + version: '4.2' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: securerandom + version: '0' + source: + type: stdlib +- name: singleton + version: '0' + source: + type: stdlib +- name: socket + version: '0' + source: + type: stdlib +- name: stackprof + version: '0.2' + source: + type: git + name: ruby/gem_rbs_collection + revision: d114ffa80f35b138aceb7660a224d78afa1b2a63 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: tempfile + version: '0' + source: + type: stdlib +- name: time + version: '0' + source: + type: stdlib +- name: timeout + version: '0' + source: + type: stdlib +- name: tsort + version: '0' + source: + type: stdlib +- name: uri + version: '0' + source: + type: stdlib +gemfile_lock_path: Gemfile.lock diff --git a/rbs_collection.yaml b/rbs_collection.yaml new file mode 100644 index 000000000..0016e57f2 --- /dev/null +++ b/rbs_collection.yaml @@ -0,0 +1,20 @@ +# Download sources +sources: + - type: git + name: ruby/gem_rbs_collection + remote: https://github.com/ruby/gem_rbs_collection.git + revision: main + repo_dir: gems + +# You can specify local directories as sources also. +# - type: local +# path: path/to/your/local/repository + +# A directory to install the downloaded RBSs +path: .gem_rbs_collection + +gems: + # Skip loading rbs gem's RBS. + # It's unnecessary if you don't use rbs as a library. + - name: rbs + ignore: true From f5322852453019968691045a09fa847ff2c661b5 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 22:07:27 +0200 Subject: [PATCH 04/15] Ignore rbs installed specifications --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 004c052c2..c20ef2bac 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,6 @@ qpixel-import.tar.gz *.swp dump.rdb + +# RBS related +/.gem_rbs_collection/ From 2497284d1dadf3b39e21202d49234a8ad65c772f Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 22:07:46 +0200 Subject: [PATCH 05/15] Use latest version of typeprof to prevent collection bugs --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 1c9460642..7aebfa76c 100644 --- a/Gemfile +++ b/Gemfile @@ -100,5 +100,5 @@ group :development do gem 'web-console', '~> 4.2' gem 'rbs_rails', require: false - gem 'typeprof', require: false + gem 'typeprof', require: false, git: 'git@github.com:ruby/typeprof.git', branch: 'master' end From 4806b0c78ac81d9c87fa3cc2eafad8300fa9e0f7 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 22:08:46 +0200 Subject: [PATCH 06/15] Remove manual changes to rbs_rails files --- sig/rbs_rails/app/models/post.rbs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sig/rbs_rails/app/models/post.rbs b/sig/rbs_rails/app/models/post.rbs index e8aea2723..249e8e04b 100644 --- a/sig/rbs_rails/app/models/post.rbs +++ b/sig/rbs_rails/app/models/post.rbs @@ -1444,12 +1444,6 @@ class Post < ::ApplicationRecord end include GeneratedAttributeMethods - # Manually added - def meta?: () -> bool - def reassign_user: (User) -> void - def tag_set: () -> TagSet - - # Auto generated def votes: () -> Vote::ActiveRecord_Associations_CollectionProxy def votes=: (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) -> (Vote::ActiveRecord_Associations_CollectionProxy | Array[Vote]) def vote_ids: () -> Array[Integer] From ba0a104871c013c21b32282bf41d726ad03225ab Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 22:09:16 +0200 Subject: [PATCH 07/15] Add post method signatures --- sig/app/models/post.rbs | 75 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 sig/app/models/post.rbs diff --git a/sig/app/models/post.rbs b/sig/app/models/post.rbs new file mode 100644 index 000000000..a3756f4ef --- /dev/null +++ b/sig/app/models/post.rbs @@ -0,0 +1,75 @@ +class Post < ApplicationRecord + include CommunityRelated + + include PostValidations + + def self.search: (String term) -> _ActiveRecord_Relation[Post, Integer] + + # @return [TagSet] + def tag_set: () -> TagSet + + # @return [Boolean] + def meta?: () -> bool + + # Used in the transfer of content from SE to reassign the owner of a post to the given user. + # @param new_user [User] + def reassign_user: (User new_user) -> untyped + + # Removes the attribution notice from this post + # @return [Boolean] whether the action was successful + def remove_attribution_notice!: () -> bool + + # @return [String] the type of the last activity on this post + def last_activity_type: () -> String + + # @return [String] the body with all markdown stripped + def body_plain: () -> String + + # @return [Boolean] whether this post is a question + def question?: () -> bool + + # @return [Boolean] whether this post is an answer + def answer?: () -> bool + + # @return [Boolean] whether this post is an article + def article?: () -> bool + + # @return [Boolean] whether there is a suggested edit pending for this post + def pending_suggested_edit?: () -> bool + + # @return [SuggestedEdit, Nil] the suggested edit pending for this post (if any) + def pending_suggested_edit: () -> SuggestedEdit? + + # Recalculates the score of this post based on its up and downvotes + def recalc_score: () -> void + + def locked?: () -> bool + + def can_access?: (User? user) -> bool + + def reaction_list: () -> Hash[ReactionType, Integer] + + private + + def update_tag_associations: () -> void + + def attribution_text: (?String? source, ?String? name, ?String? url) -> ::String + + def check_attribution_notice: () -> void + + def copy_last_activity_to_parent: () -> void + + def modify_author_reputation: () -> void + + def create_initial_revision: () -> PostHistory + + def category_allows_post_type: () -> void + + def break_description_cache: () -> void + + def license_valid: () -> void + + def moderator_tags: () -> void + + def update_category_activity: () -> void +end From 0bb43698c24f433b9a0788fbba65b2ccf4689e10 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Thu, 3 Aug 2023 22:16:44 +0200 Subject: [PATCH 08/15] Add rbs-rails rake tasks --- lib/tasks/rbs.rake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/tasks/rbs.rake diff --git a/lib/tasks/rbs.rake b/lib/tasks/rbs.rake new file mode 100644 index 000000000..9ac324a58 --- /dev/null +++ b/lib/tasks/rbs.rake @@ -0,0 +1,16 @@ +require 'rbs_rails/rake_task' + +RbsRails::RakeTask.new do |task| + # If you want to avoid generating RBS for some classes, comment in it. + # default: nil + # + # task.ignore_model_if = -> (klass) { klass == MyClass } + + # If you want to change the rake task namespace, comment in it. + # default: :rbs_rails + # task.name = :cool_rbs_rails + + # If you want to change where RBS Rails writes RBSs into, comment in it. + # default: Rails.root / 'sig/rbs_rails' + # task.signature_root_dir = Rails.root / 'my_sig/rbs_rails' +end From 1a95c18eeab8c6dc7c50c66922845acef7d1d585 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 11:00:33 +0200 Subject: [PATCH 09/15] Add signatures for helpers Partially auto-generated, partially manually set --- app/helpers/abilities_helper.rb | 2 +- app/helpers/application_helper.rb | 2 +- sig/app/helpers/abilities_helper.rbs | 4 ++++ sig/app/helpers/admin_helper.rbs | 2 ++ sig/app/helpers/advertisement_helper.rbs | 9 ++++++++ sig/app/helpers/answers_helper.rbs | 3 +++ sig/app/helpers/application_helper.rbs | 28 +++++++++++++++++++++++ sig/app/helpers/articles_helper.rbs | 2 ++ sig/app/helpers/categories_helper.rbs | 8 +++++++ sig/app/helpers/close_reasons_helper.rbs | 2 ++ sig/app/helpers/comments_helper.rbs | 11 +++++++++ sig/app/helpers/donations_helper.rbs | 2 ++ sig/app/helpers/errors_helper.rbs | 2 ++ sig/app/helpers/fake_community_helper.rbs | 2 ++ sig/app/helpers/flags_helper.rbs | 2 ++ sig/app/helpers/licenses_helper.rbs | 2 ++ sig/app/helpers/markdown_tools_helper.rbs | 4 ++++ sig/app/helpers/mod_warning_helper.rbs | 5 ++++ sig/app/helpers/moderator_helper.rbs | 6 +++++ sig/app/helpers/notifications_helper.rbs | 5 ++++ sig/app/helpers/pinned_links_helper.rbs | 5 ++++ sig/app/helpers/post_types_helper.rbs | 8 +++++++ sig/app/helpers/posts_helper.rbs | 17 ++++++++++++++ sig/app/helpers/questions_helper.rbs | 6 +++++ sig/app/helpers/reactions_helper.rbs | 5 ++++ sig/app/helpers/reports_helper.rbs | 5 ++++ sig/app/helpers/search_helper.rbs | 14 ++++++++++++ sig/app/helpers/seeds_helper.rbs | 6 +++++ sig/app/helpers/site_settings_helper.rbs | 5 ++++ sig/app/helpers/subscriptions_helper.rbs | 5 ++++ sig/app/helpers/suggested_edit_helper.rbs | 5 ++++ sig/app/helpers/tabs_helper.rbs | 9 ++++++++ sig/app/helpers/tag_sets_helper.rbs | 5 ++++ sig/app/helpers/tags_helper.rbs | 8 +++++++ sig/app/helpers/tour_helper.rbs | 5 ++++ sig/app/helpers/two_factor_helper.rbs | 5 ++++ sig/app/helpers/uploads_helper.rbs | 7 ++++++ sig/app/helpers/users_helper.rbs | 17 ++++++++++++++ sig/app/helpers/votes_helper.rbs | 5 ++++ 39 files changed, 243 insertions(+), 2 deletions(-) create mode 100644 sig/app/helpers/abilities_helper.rbs create mode 100644 sig/app/helpers/admin_helper.rbs create mode 100644 sig/app/helpers/advertisement_helper.rbs create mode 100644 sig/app/helpers/answers_helper.rbs create mode 100644 sig/app/helpers/application_helper.rbs create mode 100644 sig/app/helpers/articles_helper.rbs create mode 100644 sig/app/helpers/categories_helper.rbs create mode 100644 sig/app/helpers/close_reasons_helper.rbs create mode 100644 sig/app/helpers/comments_helper.rbs create mode 100644 sig/app/helpers/donations_helper.rbs create mode 100644 sig/app/helpers/errors_helper.rbs create mode 100644 sig/app/helpers/fake_community_helper.rbs create mode 100644 sig/app/helpers/flags_helper.rbs create mode 100644 sig/app/helpers/licenses_helper.rbs create mode 100644 sig/app/helpers/markdown_tools_helper.rbs create mode 100644 sig/app/helpers/mod_warning_helper.rbs create mode 100644 sig/app/helpers/moderator_helper.rbs create mode 100644 sig/app/helpers/notifications_helper.rbs create mode 100644 sig/app/helpers/pinned_links_helper.rbs create mode 100644 sig/app/helpers/post_types_helper.rbs create mode 100644 sig/app/helpers/posts_helper.rbs create mode 100644 sig/app/helpers/questions_helper.rbs create mode 100644 sig/app/helpers/reactions_helper.rbs create mode 100644 sig/app/helpers/reports_helper.rbs create mode 100644 sig/app/helpers/search_helper.rbs create mode 100644 sig/app/helpers/seeds_helper.rbs create mode 100644 sig/app/helpers/site_settings_helper.rbs create mode 100644 sig/app/helpers/subscriptions_helper.rbs create mode 100644 sig/app/helpers/suggested_edit_helper.rbs create mode 100644 sig/app/helpers/tabs_helper.rbs create mode 100644 sig/app/helpers/tag_sets_helper.rbs create mode 100644 sig/app/helpers/tags_helper.rbs create mode 100644 sig/app/helpers/tour_helper.rbs create mode 100644 sig/app/helpers/two_factor_helper.rbs create mode 100644 sig/app/helpers/uploads_helper.rbs create mode 100644 sig/app/helpers/users_helper.rbs create mode 100644 sig/app/helpers/votes_helper.rbs diff --git a/app/helpers/abilities_helper.rb b/app/helpers/abilities_helper.rb index 35646a3b0..d909db3b3 100644 --- a/app/helpers/abilities_helper.rb +++ b/app/helpers/abilities_helper.rb @@ -10,7 +10,7 @@ module AbilitiesHelper # to x=(4y-2)/(1-y) and use that for the progress bar. def linearize_progress(score) linear_score = ((4 * score) - 2) / (1 - score) - [0, linear_score].max + [0.0, linear_score].max end def ability_err_msg(internal_id, action = nil) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 175469b04..e9f5c3cd6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -169,7 +169,7 @@ def user_signed_in? end # Check if the current request is a direct user request, or a resource load. - # @return true if the request is direct, false if not, or nil if it cannot be determined + # @return [Boolean, Nil] true if the request is direct, false if not, or nil if it cannot be determined def direct_request? if request.headers['Sec-Fetch-Mode'].present? && request.headers['Sec-Fetch-Mode'] == 'navigate' true diff --git a/sig/app/helpers/abilities_helper.rbs b/sig/app/helpers/abilities_helper.rbs new file mode 100644 index 000000000..7eac038c6 --- /dev/null +++ b/sig/app/helpers/abilities_helper.rbs @@ -0,0 +1,4 @@ +module AbilitiesHelper + def linearize_progress: (Float score) -> Float + def ability_err_msg: ((Symbol | String) internal_id, ?(Symbol | String)? action) -> String +end diff --git a/sig/app/helpers/admin_helper.rbs b/sig/app/helpers/admin_helper.rbs new file mode 100644 index 000000000..d5c6d3555 --- /dev/null +++ b/sig/app/helpers/admin_helper.rbs @@ -0,0 +1,2 @@ +module AdminHelper +end diff --git a/sig/app/helpers/advertisement_helper.rbs b/sig/app/helpers/advertisement_helper.rbs new file mode 100644 index 000000000..d4029b468 --- /dev/null +++ b/sig/app/helpers/advertisement_helper.rbs @@ -0,0 +1,9 @@ +module AdvertisementHelper + RTL_BLOCK_START: Integer + RTL_BLOCK_END: Integer + + def do_rtl_witchcraft: (String str) -> String + def rtl?: (String? char) -> bool + def wrap_text: (String text, Integer width, Integer font_size) -> String + def community_icon: (String icon_path) -> untyped +end diff --git a/sig/app/helpers/answers_helper.rbs b/sig/app/helpers/answers_helper.rbs new file mode 100644 index 000000000..e631ba630 --- /dev/null +++ b/sig/app/helpers/answers_helper.rbs @@ -0,0 +1,3 @@ +module AnswersHelper + def my_vote: (Post answer) -> Vote? +end diff --git a/sig/app/helpers/application_helper.rbs b/sig/app/helpers/application_helper.rbs new file mode 100644 index 000000000..b6405fbcf --- /dev/null +++ b/sig/app/helpers/application_helper.rbs @@ -0,0 +1,28 @@ +module ApplicationHelper + @current_user: User? + + def moderator?: -> bool + def admin?: -> bool + def check_your_post_privilege: (Post post, String privilege) -> bool? + def check_your_privilege: (String privilege) -> bool? + def query_url: (?String? base_url, **untyped) -> String + def license_link: -> ActiveSupport::SafeBuffer + def active_search?: (String? param) -> bool + def stat_panel: (String heading, Integer value, ?caption: String?) -> ActiveSupport::SafeBuffer + def short_number_to_human: (*Integer args, **untyped) -> String? + def render_markdown: (String markdown) -> String + def strip_markdown: (String markdown) -> String + def top_level_post_types: -> Array[Integer] + def second_level_post_types: -> Array[Integer] + def generic_share_link: (Post post) -> String + def generic_edit_link: (Post post) -> String + def generic_show_link: (Post post) -> String + def split_words_max_length: (String text, Integer max_length) -> Array[String] + def deleted_item?: ((Post | Comment) item) -> bool? + def i18ns: ((String | Symbol) key, **untyped) -> String + def promoted_posts: -> Hash[Integer, DateTime] + def read_only?: -> bool + def current_user: -> User? + def user_signed_in?: -> bool + def direct_request?: -> bool? +end diff --git a/sig/app/helpers/articles_helper.rbs b/sig/app/helpers/articles_helper.rbs new file mode 100644 index 000000000..296827759 --- /dev/null +++ b/sig/app/helpers/articles_helper.rbs @@ -0,0 +1,2 @@ +module ArticlesHelper +end diff --git a/sig/app/helpers/categories_helper.rbs b/sig/app/helpers/categories_helper.rbs new file mode 100644 index 000000000..bd3f27ce5 --- /dev/null +++ b/sig/app/helpers/categories_helper.rbs @@ -0,0 +1,8 @@ +module CategoriesHelper + @current_category: Category? + + def active?: (Category category) -> bool? + def expandable?: -> bool + def current_category: -> Category? + def pending_suggestions?: -> bool +end diff --git a/sig/app/helpers/close_reasons_helper.rbs b/sig/app/helpers/close_reasons_helper.rbs new file mode 100644 index 000000000..9a97051cb --- /dev/null +++ b/sig/app/helpers/close_reasons_helper.rbs @@ -0,0 +1,2 @@ +module CloseReasonsHelper +end diff --git a/sig/app/helpers/comments_helper.rbs b/sig/app/helpers/comments_helper.rbs new file mode 100644 index 000000000..5f6ea51d4 --- /dev/null +++ b/sig/app/helpers/comments_helper.rbs @@ -0,0 +1,11 @@ +module CommentsHelper + def comment_link: (Comment comment) -> String + def render_pings: (Comment comment, ?pingable: Array[Integer]?) -> ActiveSupport::SafeBuffer + def render_comment_helpers: (String comment_text, ?User? user) -> String + def get_pingable: (CommentThread thread) -> Array[Integer] +end + +class CommentScrubber + def initialize: -> void + def skip_node?: (untyped node) -> bool +end diff --git a/sig/app/helpers/donations_helper.rbs b/sig/app/helpers/donations_helper.rbs new file mode 100644 index 000000000..d04dc2d03 --- /dev/null +++ b/sig/app/helpers/donations_helper.rbs @@ -0,0 +1,2 @@ +module DonationsHelper +end diff --git a/sig/app/helpers/errors_helper.rbs b/sig/app/helpers/errors_helper.rbs new file mode 100644 index 000000000..8e3b415c5 --- /dev/null +++ b/sig/app/helpers/errors_helper.rbs @@ -0,0 +1,2 @@ +module ErrorsHelper +end diff --git a/sig/app/helpers/fake_community_helper.rbs b/sig/app/helpers/fake_community_helper.rbs new file mode 100644 index 000000000..668825aaf --- /dev/null +++ b/sig/app/helpers/fake_community_helper.rbs @@ -0,0 +1,2 @@ +module FakeCommunityHelper +end diff --git a/sig/app/helpers/flags_helper.rbs b/sig/app/helpers/flags_helper.rbs new file mode 100644 index 000000000..4598c362d --- /dev/null +++ b/sig/app/helpers/flags_helper.rbs @@ -0,0 +1,2 @@ +module FlagsHelper +end diff --git a/sig/app/helpers/licenses_helper.rbs b/sig/app/helpers/licenses_helper.rbs new file mode 100644 index 000000000..8937fda96 --- /dev/null +++ b/sig/app/helpers/licenses_helper.rbs @@ -0,0 +1,2 @@ +module LicensesHelper +end diff --git a/sig/app/helpers/markdown_tools_helper.rbs b/sig/app/helpers/markdown_tools_helper.rbs new file mode 100644 index 000000000..54b505f29 --- /dev/null +++ b/sig/app/helpers/markdown_tools_helper.rbs @@ -0,0 +1,4 @@ +module MarkdownToolsHelper + def md_button: (?String? name, ?action: String?, ?label: String?, **untyped) -> ActiveSupport::SafeBuffer + def md_list_item: (?String? name, ?action: String?, ?label: String?, **untyped) -> ActiveSupport::SafeBuffer +end diff --git a/sig/app/helpers/mod_warning_helper.rbs b/sig/app/helpers/mod_warning_helper.rbs new file mode 100644 index 000000000..48dde6c65 --- /dev/null +++ b/sig/app/helpers/mod_warning_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module ModWarningHelper +end diff --git a/sig/app/helpers/moderator_helper.rbs b/sig/app/helpers/moderator_helper.rbs new file mode 100644 index 000000000..c19eb215c --- /dev/null +++ b/sig/app/helpers/moderator_helper.rbs @@ -0,0 +1,6 @@ +# TypeProf 0.21.7 + +# Classes +module ModeratorHelper + def text_bg: (untyped cls, ?nil content, **untyped) -> untyped +end diff --git a/sig/app/helpers/notifications_helper.rbs b/sig/app/helpers/notifications_helper.rbs new file mode 100644 index 000000000..ba073e927 --- /dev/null +++ b/sig/app/helpers/notifications_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module NotificationsHelper +end diff --git a/sig/app/helpers/pinned_links_helper.rbs b/sig/app/helpers/pinned_links_helper.rbs new file mode 100644 index 000000000..3c9e1d03a --- /dev/null +++ b/sig/app/helpers/pinned_links_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module PinnedLinksHelper +end diff --git a/sig/app/helpers/post_types_helper.rbs b/sig/app/helpers/post_types_helper.rbs new file mode 100644 index 000000000..9b523f5c7 --- /dev/null +++ b/sig/app/helpers/post_types_helper.rbs @@ -0,0 +1,8 @@ +# TypeProf 0.21.7 + +# Classes +module PostTypesHelper + def post_type_badge: (untyped `type`) -> untyped + def post_type_criteria: -> untyped + def post_type_ids: (**untyped) -> untyped +end diff --git a/sig/app/helpers/posts_helper.rbs b/sig/app/helpers/posts_helper.rbs new file mode 100644 index 000000000..dd4f0fb77 --- /dev/null +++ b/sig/app/helpers/posts_helper.rbs @@ -0,0 +1,17 @@ +# TypeProf 0.21.7 + +# Classes +module PostsHelper + def post_markdown: (untyped scope, untyped field_name) -> untyped + def cancel_redirect_path: (untyped post) -> untyped + def min_body_length: (untyped category) -> Integer + def max_body_length: (untyped _category) -> Integer + def min_title_length: (untyped category) -> Integer + def max_title_length: (untyped _category) -> Integer? + def scrubber: -> PostScrubber + + class PostScrubber + def initialize: -> void + def skip_node?: (untyped node) -> untyped + end +end diff --git a/sig/app/helpers/questions_helper.rbs b/sig/app/helpers/questions_helper.rbs new file mode 100644 index 000000000..fd3f72300 --- /dev/null +++ b/sig/app/helpers/questions_helper.rbs @@ -0,0 +1,6 @@ +# TypeProf 0.21.7 + +# Classes +module QuestionsHelper + def my_vote: (untyped question) -> nil +end diff --git a/sig/app/helpers/reactions_helper.rbs b/sig/app/helpers/reactions_helper.rbs new file mode 100644 index 000000000..cfebcda31 --- /dev/null +++ b/sig/app/helpers/reactions_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module ReactionsHelper +end diff --git a/sig/app/helpers/reports_helper.rbs b/sig/app/helpers/reports_helper.rbs new file mode 100644 index 000000000..103b34329 --- /dev/null +++ b/sig/app/helpers/reports_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module ReportsHelper +end diff --git a/sig/app/helpers/search_helper.rbs b/sig/app/helpers/search_helper.rbs new file mode 100644 index 000000000..46b79818b --- /dev/null +++ b/sig/app/helpers/search_helper.rbs @@ -0,0 +1,14 @@ +# TypeProf 0.21.7 + +# Classes +module SearchHelper + def search_posts: -> untyped + def filter_to_qualifiers: (untyped filter) -> Array[untyped] + def active_filter: -> {default: false, name: untyped, min_score: untyped, max_score: untyped, min_answers: untyped, max_answers: untyped, include_tags: untyped, exclude_tags: untyped, status: untyped} + def params_to_qualifiers: -> Array[untyped] + def parse_search: (untyped raw_search) -> {qualifiers: untyped, search: untyped} + def parse_qualifier_strings: (untyped qualifiers) -> untyped + def qualifiers_to_sql: (Array[untyped] qualifiers, untyped query) -> untyped + def numeric_value_sql: (untyped value) -> [String, untyped] + def date_value_sql: (untyped value) -> [String, String, String] +end diff --git a/sig/app/helpers/seeds_helper.rbs b/sig/app/helpers/seeds_helper.rbs new file mode 100644 index 000000000..4a844c4b3 --- /dev/null +++ b/sig/app/helpers/seeds_helper.rbs @@ -0,0 +1,6 @@ +# TypeProf 0.21.7 + +# Classes +module SeedsHelper + def update_from_seeds: (untyped `type`, untyped unique_key, untyped value_attribute) -> untyped +end diff --git a/sig/app/helpers/site_settings_helper.rbs b/sig/app/helpers/site_settings_helper.rbs new file mode 100644 index 000000000..4bd1ffd9b --- /dev/null +++ b/sig/app/helpers/site_settings_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module SiteSettingsHelper +end diff --git a/sig/app/helpers/subscriptions_helper.rbs b/sig/app/helpers/subscriptions_helper.rbs new file mode 100644 index 000000000..34d236cf1 --- /dev/null +++ b/sig/app/helpers/subscriptions_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module SubscriptionsHelper +end diff --git a/sig/app/helpers/suggested_edit_helper.rbs b/sig/app/helpers/suggested_edit_helper.rbs new file mode 100644 index 000000000..be28af99d --- /dev/null +++ b/sig/app/helpers/suggested_edit_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module SuggestedEditHelper +end diff --git a/sig/app/helpers/tabs_helper.rbs b/sig/app/helpers/tabs_helper.rbs new file mode 100644 index 000000000..8a99f2caf --- /dev/null +++ b/sig/app/helpers/tabs_helper.rbs @@ -0,0 +1,9 @@ +# TypeProf 0.21.7 + +# Classes +module TabsHelper + @building_tabs: Array[untyped] + + def tabs: -> untyped + def tab: (untyped text, untyped link_url, **untyped) -> Array[untyped] +end diff --git a/sig/app/helpers/tag_sets_helper.rbs b/sig/app/helpers/tag_sets_helper.rbs new file mode 100644 index 000000000..538a7221f --- /dev/null +++ b/sig/app/helpers/tag_sets_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module TagSetsHelper +end diff --git a/sig/app/helpers/tags_helper.rbs b/sig/app/helpers/tags_helper.rbs new file mode 100644 index 000000000..f14af947e --- /dev/null +++ b/sig/app/helpers/tags_helper.rbs @@ -0,0 +1,8 @@ +# TypeProf 0.21.7 + +# Classes +module TagsHelper + def category_sort_tags: (untyped tags, untyped required_ids, untyped topic_ids, untyped moderator_ids) -> untyped + def tag_classes: (untyped tag, untyped category) -> String + def post_ids_for_tags: (untyped tag_ids) -> untyped +end diff --git a/sig/app/helpers/tour_helper.rbs b/sig/app/helpers/tour_helper.rbs new file mode 100644 index 000000000..9f2b22d26 --- /dev/null +++ b/sig/app/helpers/tour_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module TourHelper +end diff --git a/sig/app/helpers/two_factor_helper.rbs b/sig/app/helpers/two_factor_helper.rbs new file mode 100644 index 000000000..459bc03ba --- /dev/null +++ b/sig/app/helpers/two_factor_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module TwoFactorHelper +end diff --git a/sig/app/helpers/uploads_helper.rbs b/sig/app/helpers/uploads_helper.rbs new file mode 100644 index 000000000..43ac6f34c --- /dev/null +++ b/sig/app/helpers/uploads_helper.rbs @@ -0,0 +1,7 @@ +# TypeProf 0.21.7 + +# Classes +module UploadsHelper + def upload_remote_url: (untyped blob) -> String + def valid_image?: (untyped io) -> untyped +end diff --git a/sig/app/helpers/users_helper.rbs b/sig/app/helpers/users_helper.rbs new file mode 100644 index 000000000..697859ab0 --- /dev/null +++ b/sig/app/helpers/users_helper.rbs @@ -0,0 +1,17 @@ +# TypeProf 0.21.7 + +# Classes +module UsersHelper + def avatar_url: (untyped user, ?Integer size) -> untyped + def stack_oauth_url: -> String + def can_change_category: (untyped user, untyped target) -> untyped + def preference_choice: (untyped pref_config) -> untyped + def default_filter: (untyped user_id, untyped category_id) -> untyped + def set_filter_default: (untyped user_id, untyped filter_id, untyped category_id, untyped keep) -> untyped + def user_preference: (untyped name, ?community: false) -> nil + def deleted_user?: (untyped user) -> untyped + def rtl_safe_username: (untyped user) -> String + def user_link: (untyped user, ?nil url_opts, **untyped) -> untyped + def sso_sign_in_enabled?: -> untyped + def devise_sign_in_enabled?: -> untyped +end diff --git a/sig/app/helpers/votes_helper.rbs b/sig/app/helpers/votes_helper.rbs new file mode 100644 index 000000000..14c6a26c0 --- /dev/null +++ b/sig/app/helpers/votes_helper.rbs @@ -0,0 +1,5 @@ +# TypeProf 0.21.7 + +# Classes +module VotesHelper +end From 7c3e1f56eb6fcfb902908b40a195d854ff4fe714 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 11:29:56 +0200 Subject: [PATCH 10/15] Improve post types helpers (+ signatures) --- app/helpers/post_types_helper.rb | 2 +- sig/app/helpers/post_types_helper.rbs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/helpers/post_types_helper.rb b/app/helpers/post_types_helper.rb index 144a2ab2d..c595578e4 100644 --- a/app/helpers/post_types_helper.rb +++ b/app/helpers/post_types_helper.rb @@ -12,7 +12,7 @@ def post_type_criteria def post_type_ids(**opts) key = post_type_criteria.map { |a| opts[a] ? '1' : '0' }.join Rails.cache.fetch "network/post_types/post_type_ids/#{key}", include_community: false do - PostType.where(**opts).select(:id).map(&:id) + PostType.where(**opts).ids end end end diff --git a/sig/app/helpers/post_types_helper.rbs b/sig/app/helpers/post_types_helper.rbs index 9b523f5c7..28e47dbbb 100644 --- a/sig/app/helpers/post_types_helper.rbs +++ b/sig/app/helpers/post_types_helper.rbs @@ -1,8 +1,5 @@ -# TypeProf 0.21.7 - -# Classes module PostTypesHelper - def post_type_badge: (untyped `type`) -> untyped - def post_type_criteria: -> untyped - def post_type_ids: (**untyped) -> untyped + def post_type_badge: (PostType `type`) -> ActiveSupport::SafeBuffer + def post_type_criteria: -> Array[Symbol] + def post_type_ids: (**untyped) -> Array[Integer] end From ed6678a9f2c8c6437cb186e99a81ef0a33b59277 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 12:10:42 +0200 Subject: [PATCH 11/15] Remove unused tag helper method (+ sig) --- app/helpers/tags_helper.rb | 5 ----- sig/app/helpers/tags_helper.rbs | 8 ++------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index b68d28566..83a063b60 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -17,9 +17,4 @@ def tag_classes(tag, category) moderator = moderator_ids&.include?(tag.id) ? 'is-red is-outlined' : '' "badge is-tag #{required} #{topic} #{moderator}" end - - def post_ids_for_tags(tag_ids) - sql = "SELECT post_id FROM posts_tags WHERE tag_id IN #{ApplicationRecord.sanitize_sql_in(tag_ids)}" - ActiveRecord::Base.connection.execute(sql).to_a.flatten - end end diff --git a/sig/app/helpers/tags_helper.rbs b/sig/app/helpers/tags_helper.rbs index f14af947e..85448c083 100644 --- a/sig/app/helpers/tags_helper.rbs +++ b/sig/app/helpers/tags_helper.rbs @@ -1,8 +1,4 @@ -# TypeProf 0.21.7 - -# Classes module TagsHelper - def category_sort_tags: (untyped tags, untyped required_ids, untyped topic_ids, untyped moderator_ids) -> untyped - def tag_classes: (untyped tag, untyped category) -> String - def post_ids_for_tags: (untyped tag_ids) -> untyped + def category_sort_tags: (Enumerable[Tag] tags, Enumerable[Integer] required_ids, Enumerable[Integer] topic_ids, Enumerable[Integer] moderator_ids) -> Array[Tag] + def tag_classes: (Tag tag, Category? category) -> String end From 46c4eb28865f3110bb276317f7826ac6c23a15b7 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 12:21:36 +0200 Subject: [PATCH 12/15] Fill out type signatures for helpers --- sig/app/helpers/mod_warning_helper.rbs | 3 --- sig/app/helpers/moderator_helper.rbs | 5 +---- sig/app/helpers/notifications_helper.rbs | 3 --- sig/app/helpers/pinned_links_helper.rbs | 3 --- sig/app/helpers/posts_helper.rbs | 17 +++++++-------- sig/app/helpers/questions_helper.rbs | 5 +---- sig/app/helpers/reactions_helper.rbs | 3 --- sig/app/helpers/reports_helper.rbs | 3 --- sig/app/helpers/search_helper.rbs | 21 ++++++++----------- sig/app/helpers/seeds_helper.rbs | 5 +---- sig/app/helpers/site_settings_helper.rbs | 3 --- sig/app/helpers/subscriptions_helper.rbs | 3 --- sig/app/helpers/suggested_edit_helper.rbs | 3 --- sig/app/helpers/tabs_helper.rbs | 9 +++----- sig/app/helpers/tag_sets_helper.rbs | 3 --- sig/app/helpers/tour_helper.rbs | 3 --- sig/app/helpers/two_factor_helper.rbs | 3 --- sig/app/helpers/uploads_helper.rbs | 7 ++----- sig/app/helpers/users_helper.rbs | 25 ++++++++++------------- sig/app/helpers/votes_helper.rbs | 3 --- 20 files changed, 35 insertions(+), 95 deletions(-) diff --git a/sig/app/helpers/mod_warning_helper.rbs b/sig/app/helpers/mod_warning_helper.rbs index 48dde6c65..56c7a0275 100644 --- a/sig/app/helpers/mod_warning_helper.rbs +++ b/sig/app/helpers/mod_warning_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module ModWarningHelper end diff --git a/sig/app/helpers/moderator_helper.rbs b/sig/app/helpers/moderator_helper.rbs index c19eb215c..fa02df5d3 100644 --- a/sig/app/helpers/moderator_helper.rbs +++ b/sig/app/helpers/moderator_helper.rbs @@ -1,6 +1,3 @@ -# TypeProf 0.21.7 - -# Classes module ModeratorHelper - def text_bg: (untyped cls, ?nil content, **untyped) -> untyped + def text_bg: (String cls, ?String? content, **untyped) -> ActiveSupport::SafeBuffer end diff --git a/sig/app/helpers/notifications_helper.rbs b/sig/app/helpers/notifications_helper.rbs index ba073e927..7342393a7 100644 --- a/sig/app/helpers/notifications_helper.rbs +++ b/sig/app/helpers/notifications_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module NotificationsHelper end diff --git a/sig/app/helpers/pinned_links_helper.rbs b/sig/app/helpers/pinned_links_helper.rbs index 3c9e1d03a..4bae07f41 100644 --- a/sig/app/helpers/pinned_links_helper.rbs +++ b/sig/app/helpers/pinned_links_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module PinnedLinksHelper end diff --git a/sig/app/helpers/posts_helper.rbs b/sig/app/helpers/posts_helper.rbs index dd4f0fb77..b815b67a8 100644 --- a/sig/app/helpers/posts_helper.rbs +++ b/sig/app/helpers/posts_helper.rbs @@ -1,17 +1,14 @@ -# TypeProf 0.21.7 - -# Classes module PostsHelper - def post_markdown: (untyped scope, untyped field_name) -> untyped - def cancel_redirect_path: (untyped post) -> untyped - def min_body_length: (untyped category) -> Integer - def max_body_length: (untyped _category) -> Integer - def min_title_length: (untyped category) -> Integer - def max_title_length: (untyped _category) -> Integer? + def post_markdown: ((String | Symbol) scope, (String | Symbol) field_name) -> String + def cancel_redirect_path: (Post post) -> String + def min_body_length: (Category? category) -> Integer + def max_body_length: (Category? _category) -> Integer + def min_title_length: (Category? category) -> Integer + def max_title_length: (Category? _category) -> Integer def scrubber: -> PostScrubber class PostScrubber def initialize: -> void - def skip_node?: (untyped node) -> untyped + def skip_node?: (untyped node) -> bool end end diff --git a/sig/app/helpers/questions_helper.rbs b/sig/app/helpers/questions_helper.rbs index fd3f72300..b86509194 100644 --- a/sig/app/helpers/questions_helper.rbs +++ b/sig/app/helpers/questions_helper.rbs @@ -1,6 +1,3 @@ -# TypeProf 0.21.7 - -# Classes module QuestionsHelper - def my_vote: (untyped question) -> nil + def my_vote: (Post question) -> Vote? end diff --git a/sig/app/helpers/reactions_helper.rbs b/sig/app/helpers/reactions_helper.rbs index cfebcda31..c41c03b09 100644 --- a/sig/app/helpers/reactions_helper.rbs +++ b/sig/app/helpers/reactions_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module ReactionsHelper end diff --git a/sig/app/helpers/reports_helper.rbs b/sig/app/helpers/reports_helper.rbs index 103b34329..cae2f0954 100644 --- a/sig/app/helpers/reports_helper.rbs +++ b/sig/app/helpers/reports_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module ReportsHelper end diff --git a/sig/app/helpers/search_helper.rbs b/sig/app/helpers/search_helper.rbs index 46b79818b..3b4a6befd 100644 --- a/sig/app/helpers/search_helper.rbs +++ b/sig/app/helpers/search_helper.rbs @@ -1,14 +1,11 @@ -# TypeProf 0.21.7 - -# Classes module SearchHelper - def search_posts: -> untyped - def filter_to_qualifiers: (untyped filter) -> Array[untyped] - def active_filter: -> {default: false, name: untyped, min_score: untyped, max_score: untyped, min_answers: untyped, max_answers: untyped, include_tags: untyped, exclude_tags: untyped, status: untyped} - def params_to_qualifiers: -> Array[untyped] - def parse_search: (untyped raw_search) -> {qualifiers: untyped, search: untyped} - def parse_qualifier_strings: (untyped qualifiers) -> untyped - def qualifiers_to_sql: (Array[untyped] qualifiers, untyped query) -> untyped - def numeric_value_sql: (untyped value) -> [String, untyped] - def date_value_sql: (untyped value) -> [String, String, String] + def search_posts: -> _ActiveRecord_Relation[Post, Integer] + def filter_to_qualifiers: (Filter filter) -> Array[Hash[Symbol, untyped]] + def active_filter: -> {default: bool, name: String?, min_score: Integer?, max_score: Integer?, min_answers: Integer?, max_answers: Integer?, include_tags: String?, exclude_tags: String?, status: String?} + def params_to_qualifiers: -> Array[Hash[Symbol, untyped]] + def parse_search: (String raw_search) -> {qualifiers: Array[String], search: String} + def parse_qualifier_strings: (Array[String] qualifiers) -> Array[Hash[Symbol, untyped]] + def qualifiers_to_sql: [T, PK] (Array[Hash[Symbol, untyped]] qualifiers, _ActiveRecord_Relation[T, PK] query) -> _ActiveRecord_Relation[T, PK] + def numeric_value_sql: (String value) -> [String, String] + def date_value_sql: (String value) -> [String, String, String] end diff --git a/sig/app/helpers/seeds_helper.rbs b/sig/app/helpers/seeds_helper.rbs index 4a844c4b3..fd80ceb1b 100644 --- a/sig/app/helpers/seeds_helper.rbs +++ b/sig/app/helpers/seeds_helper.rbs @@ -1,6 +1,3 @@ -# TypeProf 0.21.7 - -# Classes module SeedsHelper - def update_from_seeds: (untyped `type`, untyped unique_key, untyped value_attribute) -> untyped + def update_from_seeds: (Symbol `type`, Symbol unique_key, Symbol value_attribute) -> void end diff --git a/sig/app/helpers/site_settings_helper.rbs b/sig/app/helpers/site_settings_helper.rbs index 4bd1ffd9b..0949d0913 100644 --- a/sig/app/helpers/site_settings_helper.rbs +++ b/sig/app/helpers/site_settings_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module SiteSettingsHelper end diff --git a/sig/app/helpers/subscriptions_helper.rbs b/sig/app/helpers/subscriptions_helper.rbs index 34d236cf1..9ace045e2 100644 --- a/sig/app/helpers/subscriptions_helper.rbs +++ b/sig/app/helpers/subscriptions_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module SubscriptionsHelper end diff --git a/sig/app/helpers/suggested_edit_helper.rbs b/sig/app/helpers/suggested_edit_helper.rbs index be28af99d..b09a8dd6e 100644 --- a/sig/app/helpers/suggested_edit_helper.rbs +++ b/sig/app/helpers/suggested_edit_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module SuggestedEditHelper end diff --git a/sig/app/helpers/tabs_helper.rbs b/sig/app/helpers/tabs_helper.rbs index 8a99f2caf..6fae5d6d9 100644 --- a/sig/app/helpers/tabs_helper.rbs +++ b/sig/app/helpers/tabs_helper.rbs @@ -1,9 +1,6 @@ -# TypeProf 0.21.7 - -# Classes module TabsHelper - @building_tabs: Array[untyped] + @building_tabs: Array[ActiveSupport::SafeBuffer] - def tabs: -> untyped - def tab: (untyped text, untyped link_url, **untyped) -> Array[untyped] + def tabs: -> ActiveSupport::SafeBuffer + def tab: (String text, String link_url, **untyped) -> Array[ActiveSupport::SafeBuffer] end diff --git a/sig/app/helpers/tag_sets_helper.rbs b/sig/app/helpers/tag_sets_helper.rbs index 538a7221f..c402ce778 100644 --- a/sig/app/helpers/tag_sets_helper.rbs +++ b/sig/app/helpers/tag_sets_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module TagSetsHelper end diff --git a/sig/app/helpers/tour_helper.rbs b/sig/app/helpers/tour_helper.rbs index 9f2b22d26..681d157d6 100644 --- a/sig/app/helpers/tour_helper.rbs +++ b/sig/app/helpers/tour_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module TourHelper end diff --git a/sig/app/helpers/two_factor_helper.rbs b/sig/app/helpers/two_factor_helper.rbs index 459bc03ba..773c882a9 100644 --- a/sig/app/helpers/two_factor_helper.rbs +++ b/sig/app/helpers/two_factor_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module TwoFactorHelper end diff --git a/sig/app/helpers/uploads_helper.rbs b/sig/app/helpers/uploads_helper.rbs index 43ac6f34c..f4099bc0b 100644 --- a/sig/app/helpers/uploads_helper.rbs +++ b/sig/app/helpers/uploads_helper.rbs @@ -1,7 +1,4 @@ -# TypeProf 0.21.7 - -# Classes module UploadsHelper - def upload_remote_url: (untyped blob) -> String - def valid_image?: (untyped io) -> untyped + def upload_remote_url: (ActiveStorage::Blob blob) -> String + def valid_image?: (untyped io) -> bool end diff --git a/sig/app/helpers/users_helper.rbs b/sig/app/helpers/users_helper.rbs index 697859ab0..1fcb7a929 100644 --- a/sig/app/helpers/users_helper.rbs +++ b/sig/app/helpers/users_helper.rbs @@ -1,17 +1,14 @@ -# TypeProf 0.21.7 - -# Classes module UsersHelper - def avatar_url: (untyped user, ?Integer size) -> untyped + def avatar_url: (User? user, ?Integer size) -> untyped def stack_oauth_url: -> String - def can_change_category: (untyped user, untyped target) -> untyped - def preference_choice: (untyped pref_config) -> untyped - def default_filter: (untyped user_id, untyped category_id) -> untyped - def set_filter_default: (untyped user_id, untyped filter_id, untyped category_id, untyped keep) -> untyped - def user_preference: (untyped name, ?community: false) -> nil - def deleted_user?: (untyped user) -> untyped - def rtl_safe_username: (untyped user) -> String - def user_link: (untyped user, ?nil url_opts, **untyped) -> untyped - def sso_sign_in_enabled?: -> untyped - def devise_sign_in_enabled?: -> untyped + def can_change_category: (User user, Category target) -> bool + def preference_choice: (Hash[String, untyped] pref_config) -> Array[[String, untyped]] + def default_filter: (Integer user_id, Integer category_id) -> Filter? + def set_filter_default: (Integer user_id, Integer filter_id, Integer category_id, bool keep) -> void + def user_preference: (String name, ?community: bool) -> untyped + def deleted_user?: (User? user) -> bool + def rtl_safe_username: (User user) -> String + def user_link: (User user, ?Hash[untyped, untyped]? url_opts, **untyped) -> ActiveSupport::SafeBuffer + def sso_sign_in_enabled?: -> bool + def devise_sign_in_enabled?: -> bool end diff --git a/sig/app/helpers/votes_helper.rbs b/sig/app/helpers/votes_helper.rbs index 14c6a26c0..5a82eed07 100644 --- a/sig/app/helpers/votes_helper.rbs +++ b/sig/app/helpers/votes_helper.rbs @@ -1,5 +1,2 @@ -# TypeProf 0.21.7 - -# Classes module VotesHelper end From d792a305be91a302bbcf0a02e3a4c3e9aaaecff4 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 13:15:12 +0200 Subject: [PATCH 13/15] Signatures for model concerns --- sig/app/models/concerns/community_related.rbs | 10 +++++++ .../concerns/maybe_community_related.rbs | 10 +++++++ sig/app/models/concerns/post_related.rbs | 12 +++++++++ sig/app/models/concerns/post_validations.rbs | 12 +++++++++ sig/app/models/concerns/saml_init.rbs | 27 +++++++++++++++++++ sig/app/models/concerns/user_merge.rbs | 13 +++++++++ 6 files changed, 84 insertions(+) create mode 100644 sig/app/models/concerns/community_related.rbs create mode 100644 sig/app/models/concerns/maybe_community_related.rbs create mode 100644 sig/app/models/concerns/post_related.rbs create mode 100644 sig/app/models/concerns/post_validations.rbs create mode 100644 sig/app/models/concerns/saml_init.rbs create mode 100644 sig/app/models/concerns/user_merge.rbs diff --git a/sig/app/models/concerns/community_related.rbs b/sig/app/models/concerns/community_related.rbs new file mode 100644 index 000000000..881a77cb9 --- /dev/null +++ b/sig/app/models/concerns/community_related.rbs @@ -0,0 +1,10 @@ +module CommunityRelated + extend ActiveSupport::Concern + + def community: -> Community + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community +end diff --git a/sig/app/models/concerns/maybe_community_related.rbs b/sig/app/models/concerns/maybe_community_related.rbs new file mode 100644 index 000000000..d7fbe3b33 --- /dev/null +++ b/sig/app/models/concerns/maybe_community_related.rbs @@ -0,0 +1,10 @@ +module MaybeCommunityRelated + extend ActiveSupport::Concern + + def community: -> Community? + def community=: (Community?) -> Community? + def reload_community: () -> Community? + def build_community: (untyped) -> Community + def create_community: (untyped) -> Community + def create_community!: (untyped) -> Community +end diff --git a/sig/app/models/concerns/post_related.rbs b/sig/app/models/concerns/post_related.rbs new file mode 100644 index 000000000..a02263dd9 --- /dev/null +++ b/sig/app/models/concerns/post_related.rbs @@ -0,0 +1,12 @@ +module PostRelated + extend ActiveSupport::Concern + + include CommunityRelated + + def post: () -> Post + def post=: (Post?) -> Post? + def reload_post: () -> Post? + def build_post: (untyped) -> Post + def create_post: (untyped) -> Post + def create_post!: (untyped) -> Post +end diff --git a/sig/app/models/concerns/post_validations.rbs b/sig/app/models/concerns/post_validations.rbs new file mode 100644 index 000000000..af50c60d3 --- /dev/null +++ b/sig/app/models/concerns/post_validations.rbs @@ -0,0 +1,12 @@ +module PostValidations + extend ActiveSupport::Concern + + def maximum_tags: () -> void + def maximum_tag_length: () -> void + def no_spaces_in_tags: () -> void + def stripped_minimum_body: () -> void + def stripped_minimum_title: () -> void + def maximum_title_length: () -> void + def tags_in_tag_set: () -> void + def required_tags?: () -> void +end diff --git a/sig/app/models/concerns/saml_init.rbs b/sig/app/models/concerns/saml_init.rbs new file mode 100644 index 000000000..fbabc3f39 --- /dev/null +++ b/sig/app/models/concerns/saml_init.rbs @@ -0,0 +1,27 @@ +module SamlInit + extend ActiveSupport::Concern + + def sso_profile: -> SsoProfile? + def sso_profile=: (SsoProfile?) -> SsoProfile? + def build_sso_profile: (untyped) -> SsoProfile + def create_sso_profile: (untyped) -> SsoProfile + def create_sso_profile!: (untyped) -> SsoProfile + def reload_sso_profile: () -> SsoProfile? + + def saml_identifier: () -> String? + def saml_identifier=: (String? saml_identifier) -> void + + def saml_init_identifier: () -> String? + def saml_init_identifier=: (String? saml_identifier) -> void + + def saml_init_email: () -> String? + def saml_init_email=: (String? email) -> void + + def saml_init_email_and_identifier: () -> String? + def saml_init_email_and_identifier=: (String? email) -> String? + + def saml_init_username_no_update: () -> String? + def saml_init_username_no_update=: (String? username) -> String? + + def prepare_from_saml: () -> void +end diff --git a/sig/app/models/concerns/user_merge.rbs b/sig/app/models/concerns/user_merge.rbs new file mode 100644 index 000000000..f9de53e68 --- /dev/null +++ b/sig/app/models/concerns/user_merge.rbs @@ -0,0 +1,13 @@ +module UserMerge + extend ActiveSupport::Concern + + def merge_into: (User target_user, User attribute_to) -> void + + private + + def copy_abilities: (User _target_user, Hash[Integer, { source: Integer, target: Integer }] cu_ids) -> void + def update_thread_references: (User target_user) -> void + def update_post_action_references: (User target_user) -> void + def copy_votes: (User target_user) -> void + def copy_warnings: (User _target_user, Hash[Integer, { source: Integer, target: Integer }] cu_ids) -> void +end From 38b9178f000eaa64d7935a675caf35efaa59907f Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 13:59:09 +0200 Subject: [PATCH 14/15] Signatures for model methods up to category --- sig/app/models/ability.rbs | 8 ++++++ sig/app/models/ability_queue.rbs | 3 ++ sig/app/models/answer.rbs | 3 ++ sig/app/models/application_record.rbs | 20 ++++++++++++++ sig/app/models/article.rbs | 3 ++ sig/app/models/audit_log.rbs | 13 +++++++++ sig/app/models/blocked_item.rbs | 5 ++++ sig/app/models/category.rbs | 11 ++++++++ sig/app/models/micro_auth/app.rbs | 3 ++ sig/app/models/micro_auth/token.rbs | 3 ++ sig/app/models/post.rbs | 40 --------------------------- 11 files changed, 72 insertions(+), 40 deletions(-) create mode 100644 sig/app/models/ability.rbs create mode 100644 sig/app/models/ability_queue.rbs create mode 100644 sig/app/models/answer.rbs create mode 100644 sig/app/models/application_record.rbs create mode 100644 sig/app/models/article.rbs create mode 100644 sig/app/models/audit_log.rbs create mode 100644 sig/app/models/blocked_item.rbs create mode 100644 sig/app/models/category.rbs create mode 100644 sig/app/models/micro_auth/app.rbs create mode 100644 sig/app/models/micro_auth/token.rbs diff --git a/sig/app/models/ability.rbs b/sig/app/models/ability.rbs new file mode 100644 index 000000000..62a1907e2 --- /dev/null +++ b/sig/app/models/ability.rbs @@ -0,0 +1,8 @@ +class Ability < ApplicationRecord + include CommunityRelated + + def manual?: () -> bool + def self.on_user: (User user) -> _ActiveRecord_Relation[Ability, Integer] + def self.trust_levels: () -> Hash[Integer, String] + def self.[]: (String key) -> Ability? +end diff --git a/sig/app/models/ability_queue.rbs b/sig/app/models/ability_queue.rbs new file mode 100644 index 000000000..12c7e79a7 --- /dev/null +++ b/sig/app/models/ability_queue.rbs @@ -0,0 +1,3 @@ +class AbilityQueue < ApplicationRecord + def self.add: (User user, Comment comment) -> AbilityQueue? +end diff --git a/sig/app/models/answer.rbs b/sig/app/models/answer.rbs new file mode 100644 index 000000000..01f7f738c --- /dev/null +++ b/sig/app/models/answer.rbs @@ -0,0 +1,3 @@ +class Answer < Post + def self.post_type_id: () -> Integer +end diff --git a/sig/app/models/application_record.rbs b/sig/app/models/application_record.rbs new file mode 100644 index 000000000..dd804b659 --- /dev/null +++ b/sig/app/models/application_record.rbs @@ -0,0 +1,20 @@ +class ApplicationRecord < ActiveRecord::Base + def self.fuzzy_search: (String term, **untyped cols) -> instance + def self.match_search: (String term, **untyped cols) -> instance + + def self.sanitize_name: (untyped name) -> String + + def match_search: (String term, **untyped cols) -> instance + def attributes_print: (?join: String) -> String + + def self.sanitize_for_search: (String term, **untyped cols) -> String + def self.sanitize_sql_in: (untyped? ary) -> ("(NULL)" | String) + + def self.with_lax_group_rules: () { () -> void } -> void + + def self.useful_err_msg: () -> Array[String] +end + +module UserSortable + def user_sort: ({ term: String, default: (Symbol | String) } term_opts, **untyped field_mappings) -> _ActiveRecord_Relation[instance, Integer] +end diff --git a/sig/app/models/article.rbs b/sig/app/models/article.rbs new file mode 100644 index 000000000..0372fb216 --- /dev/null +++ b/sig/app/models/article.rbs @@ -0,0 +1,3 @@ +class Article < Post + def self.post_type_id: () -> Integer +end diff --git a/sig/app/models/audit_log.rbs b/sig/app/models/audit_log.rbs new file mode 100644 index 000000000..540b5e64b --- /dev/null +++ b/sig/app/models/audit_log.rbs @@ -0,0 +1,13 @@ +class AuditLog < ApplicationRecord + include CommunityRelated + + # These are defined dynamically + def admin_audit: (**untyped values) -> AuditLog + def moderator_audit: (**untyped values) -> AuditLog + def action_audit: (**untyped values) -> AuditLog + def user_annotation: (**untyped values) -> AuditLog + def user_history: (**untyped values) -> AuditLog + def pii_history: (**untyped values) -> AuditLog + def block_log: (**untyped values) -> AuditLog + def rate_limit_log: (**untyped values) -> AuditLog +end diff --git a/sig/app/models/blocked_item.rbs b/sig/app/models/blocked_item.rbs new file mode 100644 index 000000000..f77870a07 --- /dev/null +++ b/sig/app/models/blocked_item.rbs @@ -0,0 +1,5 @@ +class BlockedItem < ApplicationRecord + def ip?: -> bool + def email?: -> bool + def email_host?: -> bool +end diff --git a/sig/app/models/category.rbs b/sig/app/models/category.rbs new file mode 100644 index 000000000..6763a7dc0 --- /dev/null +++ b/sig/app/models/category.rbs @@ -0,0 +1,11 @@ +class Category < ApplicationRecord + include CommunityRelated + + def new_posts_for?: (User user) -> bool + + def update_activity: (ActiveSupport::TimeWithZone last_activity) -> void + + def self.by_lowercase_name: (String name) -> Category? + + def self.by_id: (Integer id) -> Category? +end diff --git a/sig/app/models/micro_auth/app.rbs b/sig/app/models/micro_auth/app.rbs new file mode 100644 index 000000000..145cd81f1 --- /dev/null +++ b/sig/app/models/micro_auth/app.rbs @@ -0,0 +1,3 @@ +class MicroAuth::App < ApplicationRecord + def valid_redirect?: (String redirect_uri) -> bool +end diff --git a/sig/app/models/micro_auth/token.rbs b/sig/app/models/micro_auth/token.rbs new file mode 100644 index 000000000..e0a00b034 --- /dev/null +++ b/sig/app/models/micro_auth/token.rbs @@ -0,0 +1,3 @@ +class MicroAuth::Token < ApplicationRecord + def active?: () -> bool +end diff --git a/sig/app/models/post.rbs b/sig/app/models/post.rbs index a3756f4ef..5beba43d0 100644 --- a/sig/app/models/post.rbs +++ b/sig/app/models/post.rbs @@ -1,75 +1,35 @@ class Post < ApplicationRecord include CommunityRelated - include PostValidations def self.search: (String term) -> _ActiveRecord_Relation[Post, Integer] - - # @return [TagSet] def tag_set: () -> TagSet - - # @return [Boolean] def meta?: () -> bool - - # Used in the transfer of content from SE to reassign the owner of a post to the given user. - # @param new_user [User] def reassign_user: (User new_user) -> untyped - - # Removes the attribution notice from this post - # @return [Boolean] whether the action was successful def remove_attribution_notice!: () -> bool - - # @return [String] the type of the last activity on this post def last_activity_type: () -> String - - # @return [String] the body with all markdown stripped def body_plain: () -> String - - # @return [Boolean] whether this post is a question def question?: () -> bool - - # @return [Boolean] whether this post is an answer def answer?: () -> bool - - # @return [Boolean] whether this post is an article def article?: () -> bool - - # @return [Boolean] whether there is a suggested edit pending for this post def pending_suggested_edit?: () -> bool - - # @return [SuggestedEdit, Nil] the suggested edit pending for this post (if any) def pending_suggested_edit: () -> SuggestedEdit? - - # Recalculates the score of this post based on its up and downvotes def recalc_score: () -> void - def locked?: () -> bool - def can_access?: (User? user) -> bool - def reaction_list: () -> Hash[ReactionType, Integer] private def update_tag_associations: () -> void - def attribution_text: (?String? source, ?String? name, ?String? url) -> ::String - def check_attribution_notice: () -> void - def copy_last_activity_to_parent: () -> void - def modify_author_reputation: () -> void - def create_initial_revision: () -> PostHistory - def category_allows_post_type: () -> void - def break_description_cache: () -> void - def license_valid: () -> void - def moderator_tags: () -> void - def update_category_activity: () -> void end From 2b54cfeeed9f1f28720322202a0035a02acdf480 Mon Sep 17 00:00:00 2001 From: Taico Aerts Date: Fri, 4 Aug 2023 13:59:31 +0200 Subject: [PATCH 15/15] Add dynamically defined methods --- sig/rbs_rails/app/models/blocked_item.rbs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sig/rbs_rails/app/models/blocked_item.rbs b/sig/rbs_rails/app/models/blocked_item.rbs index d0e645574..ea3eb4faf 100644 --- a/sig/rbs_rails/app/models/blocked_item.rbs +++ b/sig/rbs_rails/app/models/blocked_item.rbs @@ -298,8 +298,18 @@ class BlockedItem < ::ApplicationRecord def self.active: () -> ActiveRecord_Relation + # Manually added (dynamically created) + def self.ips: () -> ActiveRecord_Relation + def self.emails: () -> ActiveRecord_Relation + def self.email_hosts: () -> ActiveRecord_Relation + module GeneratedRelationMethods def active: () -> ActiveRecord_Relation + + # Manually added (dynamically created) + def ips: () -> ActiveRecord_Relation + def emails: () -> ActiveRecord_Relation + def email_hosts: () -> ActiveRecord_Relation end class ActiveRecord_Relation < ::ActiveRecord::Relation