Skip to content
This repository
Browse code

Merge pull request #2863 from raybaxter/silence_unitialized_instance_…

…variable_warnings

Silence unitialized instance variable warnings
  • Loading branch information...
commit 8bffd6c6aeee8351d2a52257cf235ccd08f7fd06 2 parents 1e13fac + fa0ebf4
Santiago Pastorino spastorino authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 actionpack/test/template/record_tag_helper_test.rb
5 actionpack/test/template/record_tag_helper_test.rb
@@ -5,6 +5,11 @@ class Post
5 5 extend ActiveModel::Naming
6 6 include ActiveModel::Conversion
7 7 attr_writer :id, :body
  8 + def initialize
  9 + @id = nil
  10 + @body = nil
  11 + super
  12 + end
8 13 def id
9 14 @id || 45
10 15 end

0 comments on commit 8bffd6c

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