Parent

Bootstrap::Generators::PartialGenerator

Attributes

app_name[R]

Public Instance Methods

generate_partial() click to toggle source
# File lib/generators/bootstrap/partial/partial_generator.rb, line 13
def generate_partial
  app = ::Rails.application
  ext = app.config.generators.options[:rails][:template_engine] || :erb
  copy_file "_#{component_name}.html.#{ext}", "app/views/shared/_#{component_name}.html.#{ext}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.