lib/imaginable/form_builder.rb in imaginable-0.1.1 vs lib/imaginable/form_builder.rb in imaginable-0.1.2

- old
+ new

@@ -30,11 +30,12 @@ has_existing_image = @object.method("has_#{method_name}?").call if has_existing_image image = @object.method("#{method_name}").call end - options[:preview_width] ||= ( options[:preview_height].present? ? nil : 50 ) - options[:preview_height] ||= ( options[:preview_width].present? ? nil : 50 ) + options[:preview_width] ||= 0 + options[:preview_height] ||= 0 + dom_prefix = "#{@object_name}_#{@method_name}" tag_text = content_tag('div', :id => "#{dom_prefix}_container", :class => "imaginable", :'data-imaginable-prefix' => dom_prefix, :'data-imaginable-upload-server' => Imaginable.upload_server, :'data-imaginable-scale-server' => Imaginable.scale_server, \ No newline at end of file