app/helpers/resque_web/application_helper.rb in resque-web-0.0.7 vs app/helpers/resque_web/application_helper.rb in resque-web-0.0.8
- old
+ new
@@ -24,10 +24,10 @@
def current_tab
params[:controller].gsub(/resque_web\//, "#{root_path}")
end
def current_tab?(name)
- params[:controller] == name.to_s
+ request.path.starts_with? tabs[name.to_s]
end
attr_reader :subtabs
def subtab(name)