Skip to content

Commit a04c0e9

Browse files
authored
Add parameters to ActiveRecord::Base.transaction (#551)
1 parent 97eb121 commit a04c0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gems/activerecord/6.0/activerecord.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module ActiveRecord
4646
def self.has_many: (Symbol, ?untyped, **untyped) -> void
4747
def self.has_one: (Symbol, ?untyped, **untyped) -> void
4848
def self.has_and_belongs_to_many: (untyped name, ?untyped? scope, **untyped options) ?{ () -> untyped } -> untyped
49-
def self.transaction: [T] () { () -> T } -> T
49+
def self.transaction: [T] (?requires_new: boolish, ?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?, ?joinable: boolish) { () -> T } -> T
5050
def self.create: (**untyped) -> instance
5151
def self.create!: (**untyped) -> instance
5252
def self.validate: (*untyped, ?if: condition[instance], ?unless: condition[instance], **untyped) -> void

0 commit comments

Comments
 (0)