mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix broken proc syntax for 1.9.3
This commit is contained in:
parent
dbb0bd8f3a
commit
b769b5fc14
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class Author < ActiveRecord::Base
|
|||
has_many :posts_with_default_include, :class_name => 'PostWithDefaultInclude'
|
||||
has_many :comments_on_posts_with_default_include, :through => :posts_with_default_include, :source => :comments
|
||||
|
||||
has_many :posts_with_signature, -> (record) { where("posts.title LIKE ?", "%by #{record.name.downcase}%") }, class_name: "Post"
|
||||
has_many :posts_with_signature, ->(record) { where("posts.title LIKE ?", "%by #{record.name.downcase}%") }, class_name: "Post"
|
||||
|
||||
scope :relation_include_posts, -> { includes(:posts) }
|
||||
scope :relation_include_tags, -> { includes(:tags) }
|
||||
|
|
Loading…
Reference in a new issue