mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Missing quote and indentation wrong
This commit is contained in:
parent
5861fde01f
commit
1910c92395
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ module ActiveRecord
|
|||
# member.posts.first.title # => 'Kari, the awesome Ruby documentation browser!'
|
||||
# member.posts.second.title # => 'The egalitarian assumption of the modern citizen'
|
||||
#
|
||||
# Alternatively, :reject_if also accepts a symbol for using methods:
|
||||
# Alternatively, :reject_if also accepts a symbol for using methods:
|
||||
#
|
||||
# class Member < ActiveRecord::Base
|
||||
# has_many :posts
|
||||
|
@ -145,7 +145,7 @@ module ActiveRecord
|
|||
# accepts_nested_attributes_for :posts, :reject_if => :reject_posts
|
||||
#
|
||||
# def reject_posts(attributed)
|
||||
# attributed['title].blank?
|
||||
# attributed['title'].blank?
|
||||
# end
|
||||
# end
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue