phcpress 2.8.8 → 2.8.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d362362643fa75f8310fc9fc8dae7b4153600813
|
4
|
+
data.tar.gz: 16ccdfc15c04ea72e0603940249c9ad79cd49112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ddf00b2b822465d9b0c98c8a8ed2a500edf25da710d4edcff54d7ce43e282125302f274c7f10035841ecdd5b706c475bc2f2891d0392badc0b1be9cc574942e
|
7
|
+
data.tar.gz: e306122fb592b73864305629d87a64d2a91e5d886f652c083e42c699ca20c6e7af6b07b85d2c458ec827237e2bbdc2fb2ae6af477d35adbf57ed30a1213ddaac
|
@@ -30,7 +30,7 @@ module Phcpress
|
|
30
30
|
|
31
31
|
# Create News Post /news/posts/new
|
32
32
|
def create
|
33
|
-
@blog_post = Blog::Post.(blog_post_params)
|
33
|
+
@blog_post = Blog::Post.new(blog_post_params)
|
34
34
|
@blog_post.user_id = current_user.id
|
35
35
|
if @blog_post.save
|
36
36
|
redirect_to blog_posts_path, notice: 'Blog post was successfully created.'
|
@@ -30,7 +30,7 @@ module Phcpress
|
|
30
30
|
|
31
31
|
# Create News Post /news/posts/new
|
32
32
|
def create
|
33
|
-
@news_post = News::Post.(news_post_params)
|
33
|
+
@news_post = News::Post.new(news_post_params)
|
34
34
|
@news_post.user_id = current_user.id
|
35
35
|
if @news_post.save
|
36
36
|
redirect_to news_posts_path, notice: 'News post was successfully created.'
|
data/lib/phcpress/version.rb
CHANGED