Browse files

Added :counter_sql as a valid key for habtm associations

Signed-off-by: Michael Koziarski <>
  • Loading branch information...
1 parent 9d4337e commit 26978e3ce84eda4e659fe9724e89c51efdd01781 @tekin tekin committed with NZKoz Nov 6, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1609,7 +1609,7 @@ def create_belongs_to_reflection(association_id, options)
:class_name, :table_name, :join_table, :foreign_key, :association_foreign_key,
:select, :conditions, :include, :order, :group, :limit, :offset,
- :finder_sql, :delete_sql, :insert_sql,
+ :finder_sql, :counter_sql, :delete_sql, :insert_sql,
:before_add, :after_add, :before_remove, :after_remove,
:extend, :readonly,

0 comments on commit 26978e3

Please sign in to comment.