lib/make_flaggable/flaggable.rb in make_flaggable-0.0.2 vs lib/make_flaggable/flaggable.rb in make_flaggable-0.0.3
- old
+ new
@@ -13,7 +13,11 @@
end
def flagged?
flaggings.count > 0
end
+
+ def flagged_by?(flagger)
+ flagger.flagged?(self)
+ end
end
end