This website requires JavaScript.
Explore
Help
Sign In
github-migration
/
cocoon
Watch
1
Star
0
Fork
0
You've already forked cocoon
Code
Issues
Pull Requests
1
Packages
Projects
Releases
Wiki
Activity
7baae8f8c3
cocoon
/
spec
/
dummy
/
app
/
models
/
comment.rb
6 lines
84 B
Ruby
Raw
Normal View
History
Unescape
Escape
Added tests for link_to_add_association.
2011-03-06 21:40:37 +00:00
class
Comment
<
ActiveRecord
::
Base
belongs_to
:post
Use association build methods instead of assoc.klass.new. This avoids mass-assignment errors and other misbehaviors around attribute accessibility.
2012-05-04 23:25:59 +00:00
attr_protected
:author
Added tests for link_to_add_association.
2011-03-06 21:40:37 +00:00
end
Reference in New Issue
Copy Permalink