2012-02-18 4 views
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 

答えて

1

あなたはそれを修正またはちょうどあなた自身のものを作成して、この人は何をしたか行う既存のフォークのいずれかを使用することができ、次のいずれかのためにhttps://github.com/mataki/subdomain_routes/commit/aed6b45d0e98531bdd4201e8f076bf49a34eadf8?w=1

+0

感謝をマタキの修正へのリンク。彼らは警告を取り除いた。 – Mei

+0

変更によって警告が取り除かれましたが、機能しませんでした。 – Mei

+0

おそらく他にも必要なコミットがあります。私はrubygems.orgに行き、プラグインを検索するだけです。あなたが試すことができる他のフォークを見つけるでしょう。 –

関連する問題