Sha256: 0ff81750eafbead57cecdb73d4a8225d1c009fe0c0822f150515e9da10d974fb

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

module ActionDispatch::Routing
  class Mapper

    def spotlight_root
      if Spotlight::Exhibit.table_exists?
        root to: "spotlight/home_pages#show", defaults: {id: Spotlight::Exhibit.default.home_page.id} 
      else
        root to: "catalog#index"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.3 lib/spotlight/rails/routes.rb