Updated to Rails 3.0.20
Fixed conditions for updating variables and related materials in integration