diff options
author | Alexey Muranov <alexey.muranov@gmail.com> | 2013-03-12 17:22:07 +0100 |
---|---|---|
committer | Alexey Muranov <alexey.muranov@gmail.com> | 2013-03-12 17:22:07 +0100 |
commit | b6cf11138c99093cb4c2c8e997355ca4a8f80b6a (patch) | |
tree | 4f279a7ca63ca6346b1dd8fa2d766a9fe6c0175f /activerecord/lib/active_record | |
parent | 99c741e35ba4cefc8883681f2363092cb8f0723e (diff) | |
download | rails-b6cf11138c99093cb4c2c8e997355ca4a8f80b6a.tar.gz rails-b6cf11138c99093cb4c2c8e997355ca4a8f80b6a.tar.bz2 rails-b6cf11138c99093cb4c2c8e997355ca4a8f80b6a.zip |
Align indentation in comments
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index d5b51ecedf..abf8272775 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -115,10 +115,10 @@ module ActiveRecord # hashes if they fail to pass your criteria. For example, the previous # example could be rewritten as: # - # class Member < ActiveRecord::Base - # has_many :posts - # accepts_nested_attributes_for :posts, reject_if: proc { |attributes| attributes['title'].blank? } - # end + # class Member < ActiveRecord::Base + # has_many :posts + # accepts_nested_attributes_for :posts, reject_if: proc { |attributes| attributes['title'].blank? } + # end # # params = { member: { # name: 'joe', posts_attributes: [ @@ -135,19 +135,19 @@ module ActiveRecord # # Alternatively, :reject_if also accepts a symbol for using methods: # - # class Member < ActiveRecord::Base - # has_many :posts - # accepts_nested_attributes_for :posts, reject_if: :new_record? - # end + # class Member < ActiveRecord::Base + # has_many :posts + # accepts_nested_attributes_for :posts, reject_if: :new_record? + # end # - # class Member < ActiveRecord::Base - # has_many :posts - # accepts_nested_attributes_for :posts, reject_if: :reject_posts + # class Member < ActiveRecord::Base + # has_many :posts + # accepts_nested_attributes_for :posts, reject_if: :reject_posts # - # def reject_posts(attributed) - # attributed['title'].blank? - # end - # end + # def reject_posts(attributed) + # attributed['title'].blank? + # end + # end # # If the hash contains an <tt>id</tt> key that matches an already # associated record, the matching record will be modified: |