Skip to content

Commit

Permalink
activerecord: Add ActiveRecord::Base.sum
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Oct 11, 2023
1 parent 8149bc3 commit cdca57b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gems/activerecord/6.0/activerecord.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ interface _ActiveRecord_Relation[Model, PrimaryKey]
def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil
def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil
def in_batches: (?of: Integer, ?start: Integer, ?finish: Integer, ?load: bool, ?error_on_ignore: bool, ?order: untyped) { (self) -> void } -> nil
def sum: (?untyped? column_name) -> Integer
def destroy_all: () -> untyped
def delete_all: () -> untyped
def update_all: (*untyped) -> untyped
Expand Down Expand Up @@ -435,6 +436,7 @@ interface _ActiveRecord_Relation_ClassMethods[Model, Relation, PrimaryKey]
def find_each: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Model) -> void } -> nil
def find_in_batches: (?batch_size: Integer, ?start: Integer, ?finish: Integer, ?error_on_ignore: bool) { (Array[Model]) -> void } -> nil
def in_batches: (?of: Integer, ?start: Integer, ?finish: Integer, ?load: bool, ?error_on_ignore: bool, ?order: untyped) { (Relation) -> void } -> nil
def sum: (?untyped? column_name) -> Integer
def destroy_all: () -> untyped
def delete_all: () -> untyped
def update_all: (*untyped) -> untyped
Expand Down

0 comments on commit cdca57b

Please sign in to comment.