Fix Rails 5.0 deprecation warning
Fix Rails 5.0 deprecation warning

roman-franko/ransack,nagyt234/ransack,AndrewSwerlick/ransack,guilleva/ransack,reinteractive/ransack,Eric-Guo/ransack,avit/ransack,mariorcardoso/ransack,Mario245/ransack,laserlemon/ransack,vaski/ransack,outstand/ransack,activerecord-hackery/ransack,amboxer21/ransack,johan--/ransack,martndemus/ransack