Not only breaking Ruby semantics, but you can get what you want with this: some_record.dup.tap do |dup_record| dup_record.attribute = some_value self.relationship.dup(reverse_relationship: dup_record) end
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.