Class: TinyFilter::Generators::FilterGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/tiny_filter/filter/filter_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_filterObject



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