Ruby On Rails实用方法

 @branch.update(auto_rebuild: [email protected]_rebuild)
=>
 @branch.toggle(:auto_rebuild)

ActiveRecord::Persistence

build.update(rebuild_count: build.rebuild_count + 1)
=>
build.increment(:rebuild_count)

ActiveRecord::Persistence

你可能感兴趣的:(ruby,on,rails,后端)