aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-07 05:05:56 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-01-07 05:05:56 -0200
commit2674f8043ff610769d12eccd6ac9902345c336b7 (patch)
treed2a72e26ebf92ade9b628139c6a42de8b7409d3c /actionview
parent3cae35bd6c46c7fb4b2daf09d1a8713feb74a0e3 (diff)
parent54aaf85e4f791aa7a3d06de837f00a73526b496c (diff)
downloadrails-2674f8043ff610769d12eccd6ac9902345c336b7.tar.gz
rails-2674f8043ff610769d12eccd6ac9902345c336b7.tar.bz2
rails-2674f8043ff610769d12eccd6ac9902345c336b7.zip
Merge pull request #22954 from yui-knk/suppress_warning_on_action_view
Suppress warning (instance variable @persisted not initialized)
Diffstat (limited to 'actionview')
-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)