Project

bookmarker

0.0
No commit activity in last 3 years
No release in over 3 years
Simple add bookmarks functionality to your models
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 3.2.12
 Project Readme

bookmarker

Add bookmarks to your models.

  • Add gem "bookmarker" to your Gemfile

  • Run generator: rails g bookmarker:install and rake db:migrate

  • Add is_bookmarkable to your bookmarkable model (for example Company)

  • Add is_bookmark_maker to your bookmark maker model (for example User)

  • Use @user.add_bookmark(@company, 'My bookmark description') or @user.unbookmark @company

  • Use @user.bookmarks for list of added bookmarks

  • Available methods: remove_bookmarks - delete all model bookmarks, find_bookmarks(Your class here, for ex. Company) - find bookmarks linked with specific class, has_in_bookmarks?(bookmarkable_instance)