Sha256: 9e3a4561f5b273a2262d0aeb44290c2a95dd2eb13a8a4825530845ed9613a1ba

Contents?: true

Size: 185 Bytes

Versions: 2

Compression:

Stored size: 185 Bytes

Contents

class Forms::CheckboxRenderer < Forms::FieldRenderer
  def render
    super do
      label_tag { check_box_tag(name, "Yes", value, html_options) + " " + field.label }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wheelhouse-forms-1.1 app/renderers/forms/checkbox_renderer.rb
wheelhouse-forms-1.0 app/renderers/forms/checkbox_renderer.rb