Sha256: 4c2a7877d33b13f3b4e62bde20b87610e1ea970d1ae0ab04540473c0cef178a3

Contents?: true

Size: 369 Bytes

Versions: 62

Compression:

Stored size: 369 Bytes

Contents

module Workarea
  module Admin
    module BookmarksHelper
      def bookmarks
        @bookmarks ||= User::AdminBookmark
                        .by_user(current_user)
                        .limit(Workarea.config.max_admin_bookmarks)
      end

      def bookmarked?
        User::AdminBookmark.bookmarked?(current_user, request.fullpath)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.4 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.26 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.3 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.25 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.2 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.24 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.1 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.23 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.22 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.0 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.21 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.5.0.beta.1 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.20 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.19 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.18 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.17 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.16 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.15 app/helpers/workarea/admin/bookmarks_helper.rb
workarea-admin-3.4.14 app/helpers/workarea/admin/bookmarks_helper.rb