Skip to content

Commit

Permalink
Avoid deprecation warning (fixes #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus von Koeller committed Oct 8, 2013
1 parent 26e04b7 commit 00e5932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/counter_culture.rb
Expand Up @@ -279,7 +279,7 @@ def change_counter_cache(options)
operator = options[:increment] ? '+' : '-'

# we don't use Rails' update_counters because we support changing the timestamp
quoted_column = connection.quote_column_name(options[:counter_column])
quoted_column = self.class.connection.quote_column_name(options[:counter_column])

updates = []
# this updates the actual counter
Expand Down

0 comments on commit 00e5932

Please sign in to comment.