fixed multiple style guide violations

This commit is contained in:
Hauke Klement
2015-02-17 10:23:01 +01:00
parent cb87870a46
commit a13d1738e2
32 changed files with 56 additions and 64 deletions

View File

@ -42,7 +42,7 @@ module ApplicationHelper
Kramdown::Document.new(markdown).to_html.html_safe
end
def row(options={}, &block)
def row(options = {}, &block)
content_tag(:div, class: 'attribute-row row') do
label_column(options[:label]) + value_column(options[:value], &block)
end
@ -65,7 +65,7 @@ module ApplicationHelper
end
private :translation_present?
def value_column(value, &block)
def value_column(value)
content_tag(:div, class: 'col-sm-9') do
block_given? ? yield : symbol_for(value)
end