Skip to content

Commit

Permalink
Wrap lines at 80 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Dec 26, 2015
1 parent 0e671ac commit 9122527
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/support/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9122527

Please sign in to comment.