Sha256: 2b75ed041d754d717b0ab754c6c0e9d822b32cbf3876ffffe397ff7b60527c07
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
# Generate initial files for the gem to work. class TitleistGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) def copy_locale template 'locale.yml.erb', 'config/locales/titleist.en.yml' end def update_default_application_layout gsub_file( 'app/views/layouts/application.html.erb', %r{\s\s\s\s<title>(.*)</title>}, ' <%= title_tag %>' ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
titleist-0.1.1 | lib/generators/titleist/titleist_generator.rb |