search for: default_model

Displaying 1 result from an estimated 1 matches for "default_model".

Did you mean: default_mode
2013 May 20
0
db connection returns stale values
...ate values; but SQL clients and other ActiveRecord connections find post-update values, confirming the update was written successfully to the database). A call to ActiveRecord::Base.establish_connection fixes the problem for the ''stale'' connection. controller: def update #@default_model.update_attributes(params[@model_name]) @default_model.assign_attributes(params[@model_name]) Graph::Helper.save(@default_model) #custom save() for legacy version control debugger @default_model.some_association.updated_field #still shows pre-update value @default_model.reload @d...