search for: tenant_id

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

2009 Sep 13
1
belongs_to + create_* = rails vs. console behavior difference = confused Pepe
...s ''audit'' ended up being updated correctly with the user ID. However, when I executed a very similar code in my controller I got different results. My original control code: @audit = Audit.new(params[:audit]) ... if @audit.save @audit.create_user(...) unless @audit.tenant_id # this code is never hit end end Everything seems OK since the @audit.tenant_id seemed to have a value but when the code was done running the database showed that the user was created but the audit never got updated with the user ID. In order to make it work I had to modify the code ab...