implement pgHero

This commit is contained in:
pixeldesu 2015-08-26 21:37:29 +02:00
parent 107bbb3aeb
commit 683ce43294
4 changed files with 13 additions and 0 deletions

View File

@ -47,6 +47,7 @@ gem 'twemoji-rails'
gem 'ruby-progressbar'
gem 'rails_admin'
gem 'pghero'
gem 'sidekiq'
gem 'sinatra', require: false

View File

@ -295,6 +295,8 @@ GEM
cocaine (~> 0.5.3)
mime-types
pg (0.18.1)
pghero (1.1.1)
activerecord
poltergeist (1.6.0)
capybara (~> 2.1)
cliver (~> 0.3.1)
@ -528,6 +530,7 @@ DEPENDENCIES
omniauth-twitter
paperclip (~> 4.2)
pg
pghero
poltergeist
questiongenerator!
rails (= 4.2.1)
@ -561,3 +564,6 @@ DEPENDENCIES
web-console
will_paginate
will_paginate-bootstrap
BUNDLED WITH
1.10.6

View File

@ -24,6 +24,11 @@
%a{href: sidekiq_web_path}
%i.fa.fa-fw.fa-bar-chart
= t('views.navigation.sidekiq')
%li
%a{href: pghero_path}
%i.fa.fa-fw.fa-database
Database Monitor
%li.divider
- if current_user.mod?
%li
%a{href: moderation_path}

View File

@ -8,6 +8,7 @@ Rails.application.routes.draw do
constraints ->(req) { req.env["warden"].authenticate?(scope: :user) &&
req.env['warden'].user.admin? } do
mount Sidekiq::Web, at: "/sidekiq"
mount PgHero::Engine, at: "/pghero", as: 'pghero'
end
# Moderation panel