Sha256: 06c23d6f4f665fbd2a7928920d5addbcfdc94541df490139e67ecc2791ca6110

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

module CommonwealthVlrEngine
  module Routes

    extend ActiveSupport::Concern
    included do |klass|
      klass.default_route_sets.unshift(:bookmark_item_actions)
    end

    # route bookmark items actions (cite, email, delete) to folder_items_actions
    # this needs to be before BL bookmarks stuff, so we add it at the beginning of
    # the default_route_sets array
    def bookmark_item_actions(_)
      add_routes do |options|
        put 'bookmarks/item_actions', :to => 'folder_items_actions#folder_item_actions', :as => 'selected_bookmarks_actions'
      end
    end

  end

end
Blacklight::Routes.send(:include, CommonwealthVlrEngine::Routes)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.1 lib/commonwealth-vlr-engine/routes.rb