phcpress 2.9.0 → 2.9.1

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: c863448003d63a00489975ec55f97cbe848edff2
4
- data.tar.gz: 366c5f69c763a78a23543372ba49ba82aa8a8871
3
+ metadata.gz: 3dc3d17464d74e0be497dc0907cf773cc50ec662
4
+ data.tar.gz: 183c350d56db38924d4b32ae11bc64da49f1812b
5
5
  SHA512:
6
- metadata.gz: 4a18eca684c84b3ea7b6610b1ad78686dfe6fd3f8dd6b9fd224fffe25e09e2bc8cf62947e7fd10f6129874d7fa2d7a75c0a28c7d4ef5408ea29eed61b7f5bbdb
7
- data.tar.gz: 18bdf1511a582e7b5ac7d940d6f2084edcfb8a07de204e2b8d4a8bc68c63336b5541c83894e4b1e15a600d68e65889dd77d9fb5316dd36cb0134f682aac5254f
6
+ metadata.gz: e013011b451ca4915456933b54bdba07285d263a345c0aab442f3770e4974e95c00a9895fa3a33aeda65aa4a937cddb6348c9d2240886f18e219d7d60930c427
7
+ data.tar.gz: 8ec76865dede873bc4d7109204eabe2d276956e670701265f670ea19552ff839e0b5e4f4c579498feee0e6fbdeb82498de5d44091c010e96dddabdf36eefaf6d
@@ -32,7 +32,7 @@ module Phcpress
32
32
  # Create News Post /news/posts/new
33
33
  def create
34
34
  @news_post = News::Post.new(news_post_params)
35
- @news_post.user_id = current_user.id
35
+ @news_post.user_id = current_user
36
36
  if @news_post.save
37
37
  redirect_to news_posts_path, notice: 'News post was successfully created.'
38
38
  else
@@ -32,7 +32,7 @@ module Phcpress
32
32
  # Create News Post /news/posts/new
33
33
  def create
34
34
  @news_post = News::Post.new(news_post_params)
35
- @news_post.user_id = current_user.id
35
+ @news_post.user_id = current_user
36
36
  if @news_post.save
37
37
  redirect_to news_posts_path, notice: 'News post was successfully created.'
38
38
  else
@@ -1,19 +1,11 @@
1
1
  module Phcpress
2
2
  class Blog::Post < ActiveRecord::Base
3
3
 
4
- # Filters Before Post
5
- before_create :authour
6
-
7
4
  # For Image Uploads
8
5
  mount_uploader :pstimage, Phcpress::PstimageUploader
9
6
 
10
7
  # Associate Post Authour to User
11
8
  belongs_to :user, class_name: 'Devise:User'
12
9
 
13
- # Define r Devise
14
- def authour
15
- self.user_id = current_user.id
16
- end
17
-
18
10
  end
19
11
  end
@@ -1,19 +1,11 @@
1
1
  module Phcpress
2
2
  class News::Post < ActiveRecord::Base
3
3
 
4
- # Filters Before Post
5
- before_create :authour
6
-
7
4
  # For Image Uploads
8
5
  mount_uploader :pstimage, Phcpress::PstimageUploader
9
6
 
10
7
  # Associate Post Authour to User
11
8
  belongs_to :user, class_name: 'Devise:User'
12
-
13
- # Define r Devise
14
- def authour
15
- self.user_id = current_user.id
16
- end
17
9
 
18
10
  end
19
11
  end
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "2.9.0"
2
+ VERSION = "2.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts