Minor code duplication removed
Moved update_record logic to relation.rb
Make `rake doc:guides` works again.  Fix #10384.
Merge pull request #10383 from Noemj/bind_param_handling

Moved update_record logic to relation.rb
Merge pull request #10385 from siong1987/fix_rake_doc_guides

Make `rake doc:guides` works again.  Fix #10384.
Merge pull request #10357 from arunagw/minor-code-deuplication-removed-app-generator

Minor code duplication removed