Rails::Generators::Actions

module Rails::Generators::Actions

Public Instance Methods

add_source(source, options={}) Show source

Add the given source to Gemfile

add_source "http://gems.github.com/"
# File railties/lib/rails/generators/actions.rb, line 67
def add_source(source, options={})
  log :source, source

  in_root do
    prepend_file "Gemfile", "source #{quote(source)}\n", verbose: false
  end
end