2012-09-05 88 views
3

我在我的RoR应用程序上拥有宝石声明授权的修改版本。如何在heroku上工作当地的宝石?

它在vendor/gems/declarative_authorization下。

我的Gemfile有

gem "declarative_authorization", '= 0.5.5', path: "vendor/gems/declarative_authorization/" 

它可以在部署和测试正常,但当我尝试推到Heroku的,它运行后bundle install它给了我一个错误,因为它无法找到该宝石提供的功能。具体而言,无法找到方法filter_access_to

heroku restart不能解决问题。

回答

1

我终于搞定了。

我的解决办法是使用:git的代替:路径

gem 'gem_name', '= 0.x.x', git: 'git://........../gem_name.git'