Module: Workarea::Admin::BookmarksHelper
- Defined in:
- app/helpers/workarea/admin/bookmarks_helper.rb
Instance Method Summary collapse
Instance Method Details
#bookmarked? ⇒ Boolean
10 11 12 |
# File 'app/helpers/workarea/admin/bookmarks_helper.rb', line 10 def bookmarked? User::AdminBookmark.bookmarked?(current_user, request.fullpath) end |
#bookmarks ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/workarea/admin/bookmarks_helper.rb', line 4 def bookmarks @bookmarks ||= User::AdminBookmark .by_user(current_user) .limit(Workarea.config.max_admin_bookmarks) end |