diff --git a/lib/cocoon/formtastic/cocoon_input.rb b/lib/cocoon/formtastic/cocoon_input.rb index f07dd1d..9198f94 100644 --- a/lib/cocoon/formtastic/cocoon_input.rb +++ b/lib/cocoon/formtastic/cocoon_input.rb @@ -18,7 +18,7 @@ class CocoonInput template.link_to_add_association template.t('.add'), builder, method, input_html_options end - data = wraper_html_options.merge(:class => 'input cocoon') + data = wrapper_html_options.merge(:class => 'input cocoon') if options[:ordered_by] data['data-ordered_by'] = options[:ordered_by] end