tagtical 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
@@ -23,8 +23,8 @@ module Tagtical::Taggable
23
23
  join(tagging_table, Arel::Nodes::OuterJoin).
24
24
  on(arel_table[:id].eq(tagging_table[:taggable_id]).and(tagging_table[:taggable_type].eq(name))).
25
25
  join(tag_table, Arel::Nodes::OuterJoin).
26
- on(tag_table[:id].eq(tagging_table[:tag_id]).and(tag_table[:type].in(empty_tag_type_classes)))
27
- .join_sql
26
+ on(tag_table[:id].eq(tagging_table[:tag_id]).and(tag_table[:type].in(empty_tag_type_classes))).
27
+ join_sql
28
28
  ).
29
29
  group("#{table_name}.id").
30
30
  having("GROUP_CONCAT(tags.type) IS NULL")
@@ -8,6 +8,7 @@ module Tagtical
8
8
  when :superset then has_many_through_tags_superset(association_id, options)
9
9
  else raise "Wrong association type, should be :subset or :superset"
10
10
  end
11
+ after_save { instance_variable_set("@#{association_id}", nil) }
11
12
  end
12
13
 
13
14
  private