diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-05-09 21:44:03 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-05-09 22:23:50 -0400 |
commit | b769b5fc1405659f8e425e174e26509ba9ea73ed (patch) | |
tree | c6472bbdd102b44c74496d716202e3c47b3719c3 /activerecord | |
parent | dbb0bd8f3a43df9881033136421be4ad219b19b5 (diff) | |
download | rails-b769b5fc1405659f8e425e174e26509ba9ea73ed.tar.gz rails-b769b5fc1405659f8e425e174e26509ba9ea73ed.tar.bz2 rails-b769b5fc1405659f8e425e174e26509ba9ea73ed.zip |
Fix broken proc syntax for 1.9.3
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/models/author.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index f2463de522..8949cf5826 100644 --- a/activerecord/test/models/author.rb +++ b/activerecord/test/models/author.rb @@ -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) } |