From 54aaf85e4f791aa7a3d06de837f00a73526b496c Mon Sep 17 00:00:00 2001 From: yui-knk Date: Thu, 7 Jan 2016 10:24:54 +0900 Subject: Suppress warning (instance variable @persisted not initialized) --- actionview/test/lib/controller/fake_models.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview') diff --git a/actionview/test/lib/controller/fake_models.rb b/actionview/test/lib/controller/fake_models.rb index a3e7e4d980..a122fe17c9 100644 --- a/actionview/test/lib/controller/fake_models.rb +++ b/actionview/test/lib/controller/fake_models.rb @@ -38,6 +38,7 @@ class TicketType < Struct.new(:name) def initialize(*args) super + @persisted = false end def persisted=(boolean) -- cgit v1.2.3