Class: LoadbehindTemplatesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/loadbehind_templates/loadbehind_templates_generator.rb

Constant Summary collapse

FILES =
["_edit.js.haml", "_errors.html.haml", "_view.js.haml","_show_box.html.haml"]

Instance Method Summary collapse

Instance Method Details

#generate_loadbehind_templatesObject



5
6
7
8
9
10
11
12
# File 'lib/generators/loadbehind_templates/loadbehind_templates_generator.rb', line 5

def generate_loadbehind_templates
  view_dir = "app/views/loadbehind"

  FILES.each do |f|
    copy_file f, "#{view_dir}/#{f}"
  end

end