favouriteshandler 2.0.0 → 2.0.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.
- checksums.yaml +4 -4
- data/lib/favorites.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98f2b452843f38bb36c68fd2f59e16c7afd239c15e399b5862223f354083b91c
|
|
4
|
+
data.tar.gz: 10a14ff952cc43fc3e789c5e0126634ba8ac07c5dfe223dccc906749142146fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a8a9118300e81139e67c17c4587033111964b400a2629ef4e6f39f9bcc6c64a8971769b95f8678627b26318653863ea17bfeec215bf8151df4f7e0d1d43d40a
|
|
7
|
+
data.tar.gz: 477c06ea188b9148dc2454760d54583c34cc22ee8b4fdd4b3042bd879f3100c1d3620eb89deecdff18b7a9d9976dde271f7a4b8ecc629dfd22c403559c7f9104
|
data/lib/favorites.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module Favorites
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
def
|
|
5
|
+
def addtofavorite(userclmnname,userid, itemclmnname,itemid, tablename) # will add the item to the favorites list
|
|
6
6
|
|
|
7
7
|
likeit = Hash.new
|
|
8
8
|
columntype = userclmnname
|
|
@@ -16,7 +16,7 @@ module Favorites
|
|
|
16
16
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
def
|
|
19
|
+
def removefavotire(likedid, tablename)# will remove the item from the favorites list
|
|
20
20
|
|
|
21
21
|
tablename.destroy(likedid)
|
|
22
22
|
redirect_back fallback_location: root_path
|