w10schools
Login
Register
In current category
Only my posts
Home
Tutorials
HTML, CSS
HTML, HTML5
CSS, CSS3
XML
JavaScript, AJAX
PHP
Ruby on Rails
Ruby
Rails
ASP.NET
ASP
C# .NET
Java
JSP
Databases
MySQL
MSSQL Server
Oracle
Web Server
Windows
Linux
Apache
IIS
Design
Dreamweaver
Flash
Photoshop
Fireworks
CorelDRAW
Illustrator
References
HTML
Bootstrap
CSS
CSS Selectors
Sass
JavaScript
Mobile Apps
Cordova
Ruby on Rails
Ruby
Rails
PHP
Function
Language
CodeIgniter
Phalcon
PHPUnit
Symfony
Drupal
Yii
Laravel
Perl
Perl
Python
Python
Django
NumPy
Pandas
scikit-image
scikit-learn
Statsmodels
Matplotlib
Lua
Lua
C, C++
C
C++
Server
Docker
Apache HTTP Server
Nginx
Database
PostgreSQL
Big Data
TensorFlow
Game Development
Phaser
LÖVE
Articles
News
General
Website Promotion
Online Advertising
Make Money Online
Editorials
Interviews
Web Roundups
Resources
Design
Fonts
Graphics
Vectors
Templates
UI (User Interface)
Brushes
Patterns, Backgrounds
Textures
Web Development
HTML, CSS
XML
JavaScript, AJAX
Ruby on Rails
PHP
Java
.NET
Python
Perl
Flash
Mobile Application Development
Mobile Development Tools
Swift
Online Services
Online Storage
Web Hosting
Tools
Generators
Edit
Toggle Dropdown
In Place Editing
Advanced Editing
References
Ruby on Rails
Rails
Classes
ActiveRecord
ActiveRecord::Locking
ActiveRecord::Locking::Optimistic
ActiveRecord::Locking::Optimistic::ClassMethods
Language
Default
Markdown
update_counters
update_counters
(id, counters)
Instance Public methods
Make sure the lock version column gets updated when counters are updated.
Links:
https://github.com/rails/rails/blob/df1df87e86a43d9e5631dd182e2e4a4d557d74c8/activerecord/lib/active_record/locking/optimistic.rb#L167
doc_ruby_on_rails
2015-06-20 00:00:00
Comments
Leave a Comment
Please
login
to continue.
Popular Articles
update_counters
update_counters(id, counters) Instance Public methods A generic âcounter updaterâ implementation, intended primarily to be used by #incr
collections.Counter.update()
update([iterable-or-mapping]) Elements are counted from an iterable or added-in from another mapping (or counter). Like dict.update() but adds cou
counters
counters($args...) This function only exists as a workaround for IE7‘s content: counter bug. It works identically to any other plain-CSS function,
counter
counter($args...) This function only exists as a workaround for IE7‘s content: counter bug. It works identically to any other plain-CSS function, e
MemoryCounterBackend::$counter
Stores a list of cache cid calls keyed by function name. Type: array File core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 20 Class Memo
Return to View
Please login to continue.