When I was reading Rails code, I found this
def save(*)
create_or_update || raise(RecordNotSaved)
end
What does the *
do? :O
I know what happens when we use it like *args
, but in this case, it's just plain *
.
ref https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L119