diff --git a/app/helpers/resque_web/application_helper.rb b/app/helpers/resque_web/application_helper.rb index cea8053..7e9b85c 100644 --- a/app/helpers/resque_web/application_helper.rb +++ b/app/helpers/resque_web/application_helper.rb @@ -65,5 +65,10 @@ def poll(polling=false) end content_tag :p, text, :class => 'poll' end + + def version + @const ||= Resque.constants.grep(/Version/i).first + Resque.const_get(@const) + end end end diff --git a/app/views/layouts/resque_web/application.html.erb b/app/views/layouts/resque_web/application.html.erb index 73e87e3..beaaa9a 100644 --- a/app/views/layouts/resque_web/application.html.erb +++ b/app/views/layouts/resque_web/application.html.erb @@ -70,7 +70,7 @@