Use full page width when editing with iD
[rails.git] / app / helpers / application_helper.rb
index 3a0ad084b5f15ac30808d7aeb14f5154e19442a6..160e25e3581aae47d488974dd49de6d95fe8f644 100644 (file)
@@ -102,4 +102,8 @@ module ApplicationHelper
   def friendly_date(date)
     content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
   end
+
+  def body_class
+    [params[:controller], "#{params[:controller]}-#{params[:action]}", @extra_body_class].compact.join(" ")
+  end
 end