From 53e2323969490d86a5a2d5b17e7dea6f73fc6fa7 Mon Sep 17 00:00:00 2001 From: Gray Manley Date: Mon, 30 Apr 2012 09:07:21 -0500 Subject: [PATCH] Code style tweaks as per comments. --- lib/simple_form/inputs/boolean_input.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/simple_form/inputs/boolean_input.rb b/lib/simple_form/inputs/boolean_input.rb index de37f90e4..92b8e037b 100644 --- a/lib/simple_form/inputs/boolean_input.rb +++ b/lib/simple_form/inputs/boolean_input.rb @@ -3,9 +3,7 @@ module Inputs class BooleanInput < Base def input if nested_boolean_style? - # If the inline_label option is a set to true then use the label_text as the inline_label - # otherwise use the specified object as the inline label (could be nil). - inline_label = options[:inline_label].eql?(true) ? label_text : options[:inline_label] + inline_label = options[:inline_label] == true ? label_text : options[:inline_label] build_hidden_field_for_checkbox + template.label_tag(nil, :class => "checkbox") { build_check_box_without_hidden_field + inline_label