lib/columns/model_cleaner.rb in columns-0.1.0 vs lib/columns/model_cleaner.rb in columns-0.1.1
- old
+ new
@@ -10,8 +10,9 @@
# file_path - An absolute String file name.
#
# Returns nothing.
def self.clean(file_path)
%x( sed -i -e '/# == Schema Info/,$d' #{file_path} > /dev/null 2>&1 )
+ %x( sed -i -e '${/^$/d;}' #{file_path} > /dev/null 2>&1 )
end
end
end