diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-11-01 11:11:52 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-11-01 13:44:49 +0100 |
commit | e42fb393c25e80a423e75e598e6988a0a35389b9 (patch) | |
tree | 0192c6a616436dede540a9eb0a9413405e0ddea3 /railties/lib/rails | |
parent | 2e7ee652d2c1466787b45de59464ca096019e784 (diff) | |
download | rails-e42fb393c25e80a423e75e598e6988a0a35389b9.tar.gz rails-e42fb393c25e80a423e75e598e6988a0a35389b9.tar.bz2 rails-e42fb393c25e80a423e75e598e6988a0a35389b9.zip |
Passing args for gemfile entry
Fixing build
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 35c6ce1cf8..ca299273ae 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -6,6 +6,7 @@ require 'rbconfig' require 'open-uri' require 'uri' require 'rails/generators/base' +require 'active_support/core_ext/array/extract_options' module Rails module Generators @@ -86,7 +87,12 @@ module Rails protected - def gemfile_entry(name, version = nil, github: nil, path: nil) + def gemfile_entry(name, *args) + options = args.extract_options! + version = args.first + github = options[:github] + path = options[:path] + if github @extra_entries << GemfileEntry.github(name, github) elsif path |