1
subdomain_routes(0.3.1)を使用しています。これで、レール2.3.8からレール2.3.14に移行する際にこの非推奨の警告が表示されます:subdomain_routes gemとDEPRECATION警告:カーネル#returningはObject#タップの代わりに廃止されました
DEPRECATION WARNING: Kernel#returning has been deprecated in favor of Object#tap. (called from significant_keys_with_subdomains at /home/mei/.rvm/gems/[email protected]/gems/subdomain_routes-0.3.1/lib/subdomain_routes/routes.rb:75)
この問題を解決する方法はありますか。
ところで、ここでsignificant_keys_with_subdomainsのコードは次のとおりです。
def significant_keys_with_subdomains
returning significant_keys_without_subdomains do |result|
if conditions[:subdomains].is_a? Symbol
result << conditions[:subdomains]
result.uniq!
end
end
end
感謝をマタキの修正へのリンク。彼らは警告を取り除いた。 – Mei
変更によって警告が取り除かれましたが、機能しませんでした。 – Mei
おそらく他にも必要なコミットがあります。私はrubygems.orgに行き、プラグインを検索するだけです。あなたが試すことができる他のフォークを見つけるでしょう。 –