app/interactions/pulitzer/update_singleton_post.rb in pulitzer-0.11.3 vs app/interactions/pulitzer/update_singleton_post.rb in pulitzer-0.12.0
- old
+ new
@@ -7,10 +7,10 @@
end
def call
if post_type.singular?
unless post_type.singleton_post?
- Pulitzer::CreateSingletonPost.new(post_type, title).call
+ Pulitzer::CreateSingletonPost.new(post_type).call
else
post_type.singleton_post.update(title: title)
end
end
end