Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gems/ancestry/4.3/ancestry.rbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module Ancestry
VERSION: String

type depth_options = Hash[:before_depth | :to_depth | :at_depth | :from_depth | :after_depth, Integer]

def self.default_update_strategy: () -> (:sql | :ruby)
Expand Down
2 changes: 2 additions & 0 deletions gems/ancestry/5.0/ancestry.rbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module Ancestry
VERSION: String

type depth_options = Hash[:before_depth | :to_depth | :at_depth | :from_depth | :after_depth, Integer]

def self.default_update_strategy: () -> (:sql | :ruby)
Expand Down
2 changes: 0 additions & 2 deletions gems/ancestry/5.0/ancestry/instance_methods.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module Ancestry

def update_descendants_with_new_ancestry: () -> void

def apply_orphan_strategy: () -> void

def apply_orphan_strategy_rootify: () -> void

def apply_orphan_strategy_destroy: () -> void
Expand Down
2 changes: 1 addition & 1 deletion gems/ancestry/5.0/ancestry/materialized_path.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Ancestry

def concat: (*String args) -> String

def self.construct_depth_sql: (String table_name, String ancestry_column, String ancestry_delimiter) -> String
def self.construct_depth_sql: (String table_name, String | Symbol ancestry_column, String ancestry_delimiter) -> String

private

Expand Down
2 changes: 1 addition & 1 deletion gems/ancestry/5.0/ancestry/materialized_path2.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Ancestry

def generate_ancestry: (Array[PrimaryKey]? ancestor_ids) -> String

def self.construct_depth_sql: (String table_name, String ancestry_column, String ancestry_delimiter) -> String
def self.construct_depth_sql: (String table_name, String | Symbol ancestry_column, String ancestry_delimiter) -> String

private

Expand Down