title: Rails: How to replace :if and :unless option for rails 5.2
body: <p>in application_controller.rb:4</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    before_action :prepare_meta_tags, if: "request.get?"
  </code></pre>
  
  <p>Rails 5.1 WARNING</p>
  
  <pre><code>DEPRECATION WARNING: Passing string to be evaluated in :if and :unless conditional options is deprecated and will be removed in Rails 5.2 without replacement. Pass a symbol for an instance method, or a lambda, proc or block, instead. (called from &lt;class:ApplicationController&gt; at MYSITE/app/controllers/application_controller.rb:4)
  </code></pre>
  
  <p>Question:</p>
  
  <ol>
  <li>What is option in :if and :unless in that clause to be rewrite</li>
  <li>And how to rewrite for compliance with rails 5.2 </li>
  </ol>
  
  <p>I have if and unless all over in my project. Need advice. Thanks</p>