aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-09-04 20:37:02 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-09-04 20:37:02 -0700
commit8bffd6c6aeee8351d2a52257cf235ccd08f7fd06 (patch)
tree592a52151c21cc83153ecddb2236b938b9406929 /actionpack
parent1e13fac0cce8ba4003f8dd0b54c15dcd9fd93e2f (diff)
parentfa0ebf4c98da483beb86da4e11f2a73729e3983a (diff)
downloadrails-8bffd6c6aeee8351d2a52257cf235ccd08f7fd06.tar.gz
rails-8bffd6c6aeee8351d2a52257cf235ccd08f7fd06.tar.bz2
rails-8bffd6c6aeee8351d2a52257cf235ccd08f7fd06.zip
Merge pull request #2863 from raybaxter/silence_unitialized_instance_variable_warnings
Silence unitialized instance variable warnings
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/record_tag_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/record_tag_helper_test.rb b/actionpack/test/template/record_tag_helper_test.rb
index edc2689896..150e44b864 100644
--- a/actionpack/test/template/record_tag_helper_test.rb
+++ b/actionpack/test/template/record_tag_helper_test.rb
@@ -5,6 +5,11 @@ class Post
extend ActiveModel::Naming
include ActiveModel::Conversion
attr_writer :id, :body
+ def initialize
+ @id = nil
+ @body = nil
+ super
+ end
def id
@id || 45
end