method

gemfile_entry

gemfile_entry()
public

No documentation available.

# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 169
    def gemfile_entry
      return unless inside_application?

      gemfile_in_app_path = File.join(rails_app_path, "Gemfile")
      if File.exist? gemfile_in_app_path
        entry = "\ngem '#{name}', path: '#{relative_path}'"
        append_file gemfile_in_app_path, entry
      end
    end