Please sign in to comment.
Use association.foreign_key istead of association.primary_key_name to…
… avoid a warning below which says the method would be removed from Rails 3.2. DEPRECATION WARNING: primary_key_name is deprecated and will be removed from Rails 3.2 (use foreign_key instead). (called from block (2 levels) in <top (required)> at /path/to/myapp/spec/spec_helper.rb:<line_num> object.destroy! was stated at /path/to/myapp/spec/spec_helper.rb:<line_num>
- Loading branch information...