lib/express_templates/components/forms/checkbox.rb in express_templates-0.9.8 vs lib/express_templates/components/forms/checkbox.rb in express_templates-0.10.1
- old
+ new
@@ -5,10 +5,10 @@
has_option :label_after, 'Positions the option label after the checkbox.', default: false
contains {
label_tag(label_name, label_text) if label_before?
- check_box(resource_var, field_name.to_sym, field_options, checked_value, unchecked_value)
+ check_box(resource_name, field_name.to_sym, field_options, checked_value, unchecked_value)
label_tag(label_name, label_text) if label_after?
}
def label_before?
!label_after?
\ No newline at end of file