Displaying 1 result from an estimated 1 matches for "updated_field".
Did you mean:
update_field
2013 May 20
0
db connection returns stale values
...'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
@default_model.some_association.updated_field #still shows pre-update
value
@default_model.find(id).some_association.updated_field #still shows
pre-update value
ActiveRecord::Base.establish_connection(:oracledb); #THIS LINE SEEMS...