Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 303 Bytes
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
Jump to Line
Something went wrong with that request. Please try again.