Either I’m not understanding how things are used, or this might be a bug
in ActiveRecord. I’m using version 1.13.2.
In my version of activerecord/lib/active_record/validations.rb (the svn
trunk version is browsable at
), I have:
def update_attribute_with_validation_skipping(name, value) send(name.to_s + '=', value) save(false) end
Which results in this error when I try to update_attribute:
wrong number of arguments (1 for 0)
I don’t think there are any save methods which take an argument, so I
removed the “(false)” part in both places it appears in the file, and my
program runs as expected.
In case this is a bug, here is the report. But if I am misusing
ActiveRecord, please correct me…