diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-15 21:11:54 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-15 21:11:54 +0200 |
commit | d6bd606bddf8c385508aa4ee699bdd5f6eab635a (patch) | |
tree | 27809249d3aa6c938eca7e364f4578ccf9cf7b73 /actionpack/lib/abstract_controller | |
parent | d5ad92ced1786b742c3ecce3cb60d851c7200bc9 (diff) | |
download | rails-d6bd606bddf8c385508aa4ee699bdd5f6eab635a.tar.gz rails-d6bd606bddf8c385508aa4ee699bdd5f6eab635a.tar.bz2 rails-d6bd606bddf8c385508aa4ee699bdd5f6eab635a.zip |
render :once, YAGNI.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index ecd0c4fb73..66f6d0eebb 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -174,7 +174,7 @@ module AbstractController options[:partial] = action_name end - if (options.keys & [:partial, :file, :template, :once]).empty? + if (options.keys & [:partial, :file, :template]).empty? options[:prefixes] ||= _prefixes end |