bookmarker 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -36,8 +36,12 @@ module Bookmarker
|
|
36
36
|
|
37
37
|
end
|
38
38
|
|
39
|
-
def find_bookmarks
|
40
|
-
bookmarks.where(
|
39
|
+
def find_bookmarks bookmarkable_model
|
40
|
+
bookmarks.where(:bookmarkable_type => bookmarkable_model.base_class.name.to_s)
|
41
|
+
end
|
42
|
+
|
43
|
+
def remove_bookmarks
|
44
|
+
bookmarks.delete_all
|
41
45
|
end
|
42
46
|
|
43
47
|
def unbookmark bookmarkable
|
data/lib/bookmarker/version.rb
CHANGED