mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
13 lines
303 B
Ruby
13 lines
303 B
Ruby
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
|