Skip to content
Permalink
Browse files

Unify AR touch method signatures

not to warn when super was called
  • Loading branch information...
amatsuda committed Sep 5, 2019
1 parent 487feaf commit 4fd6d8d81d3920b12502277e591e2c64fe187db9
@@ -314,7 +314,7 @@ def destroy #:nodoc:
@_destroy_callback_already_called = false
end

def touch(*) #:nodoc:
def touch(*, **) #:nodoc:
_run_touch_callbacks { super }
end

@@ -58,7 +58,7 @@ def touch_later(*) # :nodoc:
super unless no_touching?
end

def touch(*) # :nodoc:
def touch(*, **) # :nodoc:
super unless no_touching?
end
end
@@ -318,7 +318,7 @@ def save!(*, **) #:nodoc:
with_transaction_returning_status { super }
end

def touch(*) #:nodoc:
def touch(*, **) #:nodoc:
with_transaction_returning_status { super }
end

0 comments on commit 4fd6d8d

Please sign in to comment.
You can’t perform that action at this time.