Skip to content

Commit

Permalink
Code style tweaks as per comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmanley committed Apr 30, 2012
1 parent 0c017e9 commit 53e2323
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/simple_form/inputs/boolean_input.rb
Expand Up @@ -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
Expand Down

0 comments on commit 53e2323

Please sign in to comment.