From 912252719201db22f17dee022eb5dfd3097b4ea1 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sat, 26 Dec 2015 08:07:33 +0100 Subject: [PATCH] Wrap lines at 80 chars --- spec/support/schema.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spec/support/schema.rb b/spec/support/schema.rb index 5a9ada3..d46b6ce 100644 --- a/spec/support/schema.rb +++ b/spec/support/schema.rb @@ -35,12 +35,15 @@ class Person < ActiveRecord::Base has_many :articles if ActiveRecord::VERSION::MAJOR == 3 if RUBY_VERSION >= '2.3' - has_many :published_articles, class_name: "Article", conditions: "published = 't'" + has_many :published_articles, class_name: "Article", + conditions: "published = 't'" else - has_many :published_articles, class_name: "Article", conditions: { published: true } + has_many :published_articles, class_name: "Article", + conditions: { published: true } end else - has_many :published_articles, ->{ where(published: true) }, class_name: "Article" + has_many :published_articles, ->{ where(published: true) }, + class_name: "Article" end has_many :comments has_many :authored_article_comments, through: :articles,