Since I upgraded to 1.1, I am getting ‘ActiveRecord::ReadOnlyRecord’
exceptions when trying to save a specific record.
I read up on ActiveRecord::Base.readonly? but I don’t think the
there (objects pulled in from a certain JOIN type) applies.
Here’s my code that is throwing the exception:
@company = session[:company]
@company.bytes_used = @company.calculate_megabytes_used
session[:company] = @company
This was working under 1.0 and I checked SVN and I don’t see any changes
this code in my repository since then…
What could be causing this? Any ideas?