Skip to content
Browse files

Merge pull request #2863 from raybaxter/silence_unitialized_instance_…

…variable_warnings

Silence unitialized instance variable warnings
  • Loading branch information...
2 parents 1e13fac + fa0ebf4 commit 8bffd6c6aeee8351d2a52257cf235ccd08f7fd06 @spastorino spastorino committed Sep 4, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/record_tag_helper_test.rb
View
5 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

0 comments on commit 8bffd6c

Please sign in to comment.
Something went wrong with that request. Please try again.