Class: TinyFilter::Generators::FilterGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- TinyFilter::Generators::FilterGenerator
- Defined in:
- lib/generators/tiny_filter/filter/filter_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_filter ⇒ Object
14 15 16 17 |
# File 'lib/generators/tiny_filter/filter/filter_generator.rb', line 14 def create_filter template_file = File.join("app/filters", class_path, filter_file_name) template "filter.rb.tt", template_file end |