aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/lib
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2016-01-07 10:24:54 +0900
committeryui-knk <spiketeika@gmail.com>2016-01-07 10:24:54 +0900
commit54aaf85e4f791aa7a3d06de837f00a73526b496c (patch)
treed2a72e26ebf92ade9b628139c6a42de8b7409d3c /actionview/test/lib
parent3cae35bd6c46c7fb4b2daf09d1a8713feb74a0e3 (diff)
downloadrails-54aaf85e4f791aa7a3d06de837f00a73526b496c.tar.gz
rails-54aaf85e4f791aa7a3d06de837f00a73526b496c.tar.bz2
rails-54aaf85e4f791aa7a3d06de837f00a73526b496c.zip
Suppress warning (instance variable @persisted not initialized)
Diffstat (limited to 'actionview/test/lib')
-rw-r--r--actionview/test/lib/controller/fake_models.rb1
1 files changed, 1 insertions, 0 deletions
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)