Sha256: 73940c3771d77eb3e78058af3c0c6a2410262c42f663eecd6141823e08890f54

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module Worthwhile::SearchPathsHelper

  def search_path_for_my_works(opts={})
    params_for_my_works = {:'f[generic_type_sim][]'=>'Work', works: 'mine'}
    main_app.catalog_index_path(params_for_my_works.merge(opts))
  end

  def search_path_for_my_collections(opts={})
    params_for_my_collections = {:'f[generic_type_sim][]'=>'Collection', works: 'mine'}
    main_app.catalog_index_path(params_for_my_collections.merge(opts))
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/helpers/worthwhile/search_paths_helper.rb
worthwhile-0.1.1 app/helpers/worthwhile/search_paths_helper.rb
worthwhile-0.1.0 app/helpers/worthwhile/search_paths_helper.rb
worthwhile-0.0.3 app/helpers/worthwhile/search_paths_helper.rb
worthwhile-0.0.2 app/helpers/worthwhile/search_paths_helper.rb
worthwhile-0.0.1 app/helpers/worthwhile/search_paths_helper.rb