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

Version Path
casey_jones-0.1.2 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.1.1 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.1.0 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.121 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.120 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.119 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.118 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.117 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.116 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.115 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.114 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.113 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
casey_jones-0.0.112 lib/generators/loadbehind_templates/loadbehind_templates_generator.rb