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

- old
+ new

@@ -30,10 +30,11 @@ has_existing_image = @object.method("has_#{method_name}?").call if has_existing_image image = @object.method("#{method_name}").call end - options[:preview_width] ||= 50 + options[:preview_width] ||= ( options[:preview_height].present? ? nil : 50 ) + options[:preview_height] ||= ( options[:preview_width].present? ? nil : 50 ) 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