features/step_definitions/rails_steps.rb in paperclip-3.5.4 vs features/step_definitions/rails_steps.rb in paperclip-4.0.0
- old
+ new
@@ -67,9 +67,10 @@
snippet += "has_attached_file :#{name}"
if definition
snippet += ", \n"
snippet += definition
end
+ snippet += "\ndo_not_validate_attachment_file_type :#{name}\n"
in_current_dir do
transform_file("app/models/user.rb") do |content|
content.sub(/end\Z/, "#{snippet}\nend")
end
end