From aefaa0157e0c5bd12577787be53243474262ba8c Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Wed, 20 May 2015 14:15:50 +0000 Subject: [PATCH] Fix suggest article test. Properly testing the profile params in article creation --- app/models/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index bc6e5f5..367ce97 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -28,7 +28,7 @@ class Article < ActiveRecord::Base def initialize(*params) super - if !params.blank? && params.first.has_key?(:profile) + if !params.blank? && params.first[:profile] profile = params.first[:profile] self.published = false unless profile.public? end -- libgit2 0.21.2