lib/post.rb in runeblog-0.2.29 vs lib/post.rb in runeblog-0.2.30

- old
+ new

@@ -61,19 +61,20 @@ @blog = RuneBlog.blog || raise(NoBlogAccessor) @meta = OpenStruct.new end def self.create(title:, teaser:, body:, pubdate: Time.now.strftime("%Y-%m-%d"), - other_views:[]) - log!(enter: __method__, args: [title, teaser, body, pubdate, other_views]) + views:[]) + log!(enter: __method__, args: [title, teaser, body, pubdate, views]) post = self.new # NOTE: This is the ONLY place next_sequence is called! num = post.meta.num = post.blog.next_sequence # new_metadata post.meta.title, post.meta.teaser, post.meta.body, post.meta.pubdate = title, teaser, body, pubdate - post.meta.views = [post.blog.view.to_s] + other_views + post.meta.views = [post.blog.view.to_s] + views +# STDERR.puts "Post.create: views = #{views.inspect}" post.meta.tags = [] post.blog.make_slug(post.meta) # adds to meta # create_draft viewhome = post.blog.view.publisher.url