-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate signatures for all models and path helpers (using rbs_rails)
- Loading branch information
1 parent
1b4bad6
commit fb496a3
Showing
200 changed files
with
77,311 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
sig/rbs_rails/app/models/active_record/schema_migration.rbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
module ActiveRecord | ||
class SchemaMigration < ::ActiveRecord::Base | ||
extend _ActiveRecord_Relation_ClassMethods[ActiveRecord::SchemaMigration, ActiveRecord_Relation, String] | ||
|
||
module GeneratedAttributeMethods | ||
def version: () -> String | ||
|
||
def version=: (String) -> String | ||
|
||
def version?: () -> bool | ||
|
||
def version_changed?: () -> bool | ||
|
||
def version_change: () -> [ String?, String? ] | ||
|
||
def version_will_change!: () -> void | ||
|
||
def version_was: () -> String? | ||
|
||
def version_previously_changed?: () -> bool | ||
|
||
def version_previous_change: () -> Array[String?]? | ||
|
||
def version_previously_was: () -> String? | ||
|
||
def version_before_last_save: () -> String? | ||
|
||
def version_change_to_be_saved: () -> Array[String?]? | ||
|
||
def version_in_database: () -> String? | ||
|
||
def saved_change_to_version: () -> Array[String?]? | ||
|
||
def saved_change_to_version?: () -> bool | ||
|
||
def will_save_change_to_version?: () -> bool | ||
|
||
def restore_version!: () -> void | ||
|
||
def clear_version_change: () -> void | ||
end | ||
include GeneratedAttributeMethods | ||
|
||
module GeneratedAssociationMethods | ||
end | ||
include GeneratedAssociationMethods | ||
|
||
module GeneratedRelationMethods | ||
end | ||
|
||
class ActiveRecord_Relation < ::ActiveRecord::Relation | ||
include GeneratedRelationMethods | ||
include _ActiveRecord_Relation[ActiveRecord::SchemaMigration, String] | ||
include Enumerable[ActiveRecord::SchemaMigration] | ||
end | ||
|
||
class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy | ||
include GeneratedRelationMethods | ||
include _ActiveRecord_Relation[ActiveRecord::SchemaMigration, String] | ||
end | ||
end | ||
end |
208 changes: 208 additions & 0 deletions
208
sig/rbs_rails/app/models/active_record/session_store/session.rbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
module ActiveRecord | ||
module SessionStore | ||
class Session < ::ActiveRecord::Base | ||
extend _ActiveRecord_Relation_ClassMethods[ActiveRecord::SessionStore::Session, 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 session_id: () -> String | ||
|
||
def session_id=: (String) -> String | ||
|
||
def session_id?: () -> bool | ||
|
||
def session_id_changed?: () -> bool | ||
|
||
def session_id_change: () -> [ String?, String? ] | ||
|
||
def session_id_will_change!: () -> void | ||
|
||
def session_id_was: () -> String? | ||
|
||
def session_id_previously_changed?: () -> bool | ||
|
||
def session_id_previous_change: () -> Array[String?]? | ||
|
||
def session_id_previously_was: () -> String? | ||
|
||
def session_id_before_last_save: () -> String? | ||
|
||
def session_id_change_to_be_saved: () -> Array[String?]? | ||
|
||
def session_id_in_database: () -> String? | ||
|
||
def saved_change_to_session_id: () -> Array[String?]? | ||
|
||
def saved_change_to_session_id?: () -> bool | ||
|
||
def will_save_change_to_session_id?: () -> bool | ||
|
||
def restore_session_id!: () -> void | ||
|
||
def clear_session_id_change: () -> void | ||
|
||
def data: () -> String? | ||
|
||
def data=: (String?) -> String? | ||
|
||
def data?: () -> bool | ||
|
||
def data_changed?: () -> bool | ||
|
||
def data_change: () -> [ String?, String? ] | ||
|
||
def data_will_change!: () -> void | ||
|
||
def data_was: () -> String? | ||
|
||
def data_previously_changed?: () -> bool | ||
|
||
def data_previous_change: () -> Array[String?]? | ||
|
||
def data_previously_was: () -> String? | ||
|
||
def data_before_last_save: () -> String? | ||
|
||
def data_change_to_be_saved: () -> Array[String?]? | ||
|
||
def data_in_database: () -> String? | ||
|
||
def saved_change_to_data: () -> Array[String?]? | ||
|
||
def saved_change_to_data?: () -> bool | ||
|
||
def will_save_change_to_data?: () -> bool | ||
|
||
def restore_data!: () -> void | ||
|
||
def clear_data_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 | ||
end | ||
include GeneratedAttributeMethods | ||
|
||
module GeneratedAssociationMethods | ||
end | ||
include GeneratedAssociationMethods | ||
|
||
module GeneratedRelationMethods | ||
end | ||
|
||
class ActiveRecord_Relation < ::ActiveRecord::Relation | ||
include GeneratedRelationMethods | ||
include _ActiveRecord_Relation[ActiveRecord::SessionStore::Session, Integer] | ||
include Enumerable[ActiveRecord::SessionStore::Session] | ||
end | ||
|
||
class ActiveRecord_Associations_CollectionProxy < ::ActiveRecord::Associations::CollectionProxy | ||
include GeneratedRelationMethods | ||
include _ActiveRecord_Relation[ActiveRecord::SessionStore::Session, Integer] | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.