1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/generators/rails/helper/helper_generator.rb

14 lines
303 B
Ruby
Raw Normal View History

2009-06-26 03:53:53 -04:00
module Rails
module Generators
class HelperGenerator < NamedBase
check_class_collision :suffix => "Helper"
2009-06-26 03:53:53 -04:00
def create_helper_files
template 'helper.rb', File.join('app/helpers', class_path, "#{file_name}_helper.rb")
end
2009-06-27 08:27:26 -04:00
hook_for :test_framework
2009-06-26 03:53:53 -04:00
end
end
end