Sha256: bc0725f021447a2589ccfa41a11715b9c4dc2a35fb5102c9da19d332d1e3636b
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
# typed: strict # Generate initial files for the gem to work. class TitleistGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) # @return [nil] def copy_locale template 'locale.yml.erb', 'config/locales/titleist.en.yml' end # @return [nil] 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-1.0.0 | lib/generators/titleist/titleist_generator.rb |