Sha256: 05f68d3068a50064435a8724369aac5311099fe6c4b10308d6bc9f026048535a

Contents?: true

Size: 770 Bytes

Versions: 6

Compression:

Stored size: 770 Bytes

Contents

# From: https://gist.github.com/stas/4131823
require 'rails/generators'
require 'rails/generators/rails/plugin_new/plugin_new_generator'
 
class DummyGenerator < Rails::Generators::PluginNewGenerator

  def self.default_source_root
    Rails::Generators::PluginNewGenerator.default_source_root
  end

  def do_nothing
  end

  alias :create_root :do_nothing
  alias :create_root_files :do_nothing
  alias :create_app_files :do_nothing
  alias :create_config_files :do_nothing
  alias :create_lib_files :do_nothing
  alias :create_public_stylesheets_files :do_nothing
  alias :create_javascript_files :do_nothing
  alias :create_script_files :do_nothing
  alias :update_gemfile :do_nothing
  alias :create_test_files :do_nothing
  alias :finish_template :do_nothing

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-editor-0.0.6 spec/support/dummy_generator.rb
hydra-editor-0.0.5 spec/support/dummy_generator.rb
hydra-editor-0.0.4 spec/support/dummy_generator.rb
hydra-editor-0.0.3 spec/support/dummy_generator.rb
hydra-editor-0.0.2 spec/support/dummy_generator.rb
hydra-editor-0.0.1 spec/support/dummy_generator.rb