Skip to content

Commit

Permalink
Check for mbleigh#390 to prevent application breakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Jan 3, 2014
1 parent 8ee0a10 commit 008750e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tagging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.columns
@acts_as_taggable_on_counter_columns ||= begin
db_columns = super
if _has_tags_counter_column?(db_columns)
belongs_to :tag, :class_name => 'ActsAsTaggableOn::Tag', :counter_cache => true
belongs_to :tag, :class_name => 'ActsAsTaggableOn::Tag', :counter_cache => ActsAsTaggableOn::Tag.column_names.include?('taggings_count')

This comment has been minimized.

Copy link
@bf4

bf4 Jan 3, 2014

I wondered about that....

This comment has been minimized.

Copy link
@seuros

seuros Jan 3, 2014

Author Owner

What do you mean ?

This comment has been minimized.

Copy link
@bf4

bf4 Jan 3, 2014

If I might want to return true or false from a function

end
db_columns
end
Expand Down

0 comments on commit 008750e

Please sign in to comment.