aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/helper/helper_generator.rb
blob: ad663885915eb7b3f94df3f95e15b503027ccd31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Rails
  module Generators
    class HelperGenerator < NamedBase
      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