Skip to content
This repository
Newer
Older
100644 13 lines (11 sloc) 0.303 kb
e0843136 » josevalim
2009-06-26 Added HelperGenerator.
1 module Rails
2 module Generators
3 class HelperGenerator < NamedBase
2f3681df » josevalim
2009-06-26 Clean up class collisions check and a class method helper.
4 check_class_collision :suffix => "Helper"
e0843136 » josevalim
2009-06-26 Added HelperGenerator.
5
6 def create_helper_files
bac0826b » drogus
2010-09-24 Refactor namespaced generators to use module_namespacing block helper
7 template 'helper.rb', File.join('app/helpers', class_path, "#{file_name}_helper.rb")
e0843136 » josevalim
2009-06-26 Added HelperGenerator.
8 end
9
1a15dd4d » josevalim
2009-06-27 Rename invoke_for to hook_for.
10 hook_for :test_framework
e0843136 » josevalim
2009-06-26 Added HelperGenerator.
11 end
12 end
13 end
Something went wrong with that request. Please try again.