--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Decrement a number field by one, usually representing a count.
- !ruby/struct:SM::Flow::P 
  body: This works the same as increment_counter but reduces the column value by 1 instead of increasing it.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>counter_name</tt> - The name of the field that should be decremented.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>id</tt> - The id of the object that should be decremented.
  type: :BULLET
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  # Decrement the post_count column for the record with an id of 5\n  DiscussionBoard.decrement_counter(:post_count, 5)\n"
full_name: ActiveRecord::Base::decrement_counter
is_singleton: true
name: decrement_counter
params: (counter_name, id)
visibility: public
