Sha256: 75cab61d2a6f4ccb417e279a8bca163e2ff32c0135decb80875b0d5d6e5f0021
Contents?: true
Size: 382 Bytes
Versions: 13
Compression:
Stored size: 382 Bytes
Contents
class LoadbehindTemplatesGenerator < Rails::Generators::Base source_root File.expand_path('../../../../app/views/loadbehind', __FILE__) FILES = ["_edit.js.haml", "_errors.html.haml", "_view.js.haml","_show_box.html.haml"] def generate_loadbehind_templates view_dir = "app/views/loadbehind" FILES.each do |f| copy_file f, "#{view_dir}/#{f}" end end end
Version data entries
13 entries across 13 versions & 1 rubygems