go_blog 0.2.1 → 0.2.2

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: 2cf944e4493c1b9ae8768e2dedc83797a20cff83
4
- data.tar.gz: 884423812b3cb7207cb9e13d32e6696765283fff
3
+ metadata.gz: f9888579f7c35398f563800cd2d3684224bafa15
4
+ data.tar.gz: 861ac9f2a32376d19bfc0f0dd846d7df983b4179
5
5
  SHA512:
6
- metadata.gz: 500ee9d2e60c8534714d5eb2f610a7e89659a01e7cc8402e597ceccff777507be4d9199f8670e13d7325733898573b4307a46971c3ddb9a22b61913b0d247a4c
7
- data.tar.gz: 8475f92d7e1acd64dc715b838ac07de96631a8e99dc6a60d7886ab4d85fd842ac348c527d248a5190627c97e2a27fc7ef9954bda50c5c4a45710ec65db877108
6
+ metadata.gz: 2d14a558cf7caf58ab0787163a0956b7945bef9457305713d66f6dba552a9e7179e2dd9100b53ed8014bf276de68f28e1b4cb4342acdc1f4041806e3f50ab948
7
+ data.tar.gz: 2cc5b0761e56af9146f7186db04a0b3a5c1504f019ae153ce086b6b6b0c31d354dff902d9ab2f2d18e08585898369d930d4748671d9784306309d28504cc51c2
@@ -42,6 +42,7 @@ module Blog
42
42
  def create
43
43
  authorize! :create, @blog_post
44
44
  @blog_post = Post.new(blog_post_params)
45
+ @blog_post.user_id = current_user.id
45
46
 
46
47
  if @blog_post.save
47
48
  redirect_to @blog_post, notice: 'Post was successfully created.'
@@ -1,7 +1,6 @@
1
1
  <%= simple_form_for @blog_post, class: "form-horizontal" do |f| %>
2
2
  <%= f.error_notification %>
3
3
 
4
- <%= f.hidden_field :user_id, id: :blog_post_user_id, value: current_user.id %>
5
4
 
6
5
  <%= f.input :title, id: :blog_post_title %>
7
6
 
@@ -1,3 +1,3 @@
1
1
  module GoBlog
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Carlos Ottobboni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-24 00:00:00.000000000 Z
11
+ date: 2017-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: draper