This website requires JavaScript.
Explore
Help
Sign In
github-migration
/
cocoon
Watch
1
Star
0
Fork
You've already forked cocoon
0
Code
Issues
Pull Requests
1
Packages
Projects
Releases
Wiki
Activity
d4f59eb5eb
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