Sha256: eecd93ee875ae0100ea9f93fa417ba666fc9d0e0c96ae9fef6ee1870f8bd079a

Contents?: true

Size: 310 Bytes

Versions: 20

Compression:

Stored size: 310 Bytes

Contents

module Rails
  module Generators
    class HelperGenerator < NamedBase # :nodoc:
      check_class_collision suffix: "Helper"

      def create_helper_files
        template "helper.rb", File.join("app/helpers", class_path, "#{file_name}_helper.rb")
      end

      hook_for :test_framework
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.7.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.6.2 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.6.1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.6 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.5 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.5.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.4 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.4.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.3 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.3.rc3 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.3.rc2 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.3.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.2 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.2.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.0 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.0.rc2 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.0.rc1 lib/rails/generators/rails/helper/helper_generator.rb
railties-5.1.0.beta1 lib/rails/generators/rails/helper/helper_generator.rb