Sha256: fca4a2bbe70d1c76f0eeecc989cf358c8051c01272500a9e64ac359052281f6c
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
class AdminHelp::InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'Copy templates for admin scaffold controller.' def install copy_file File.expand_path('../templates/layouts/application.html.erb', __FILE__), 'app/views/layouts/application.html.erb' copy_file File.expand_path('../templates/layouts/flash.html.erb', __FILE__), 'app/views/layouts/flash.html.erb' copy_file File.expand_path('../templates/layouts/header.html.erb', __FILE__), 'app/views/layouts/header.html.erb' copy_file File.expand_path('../templates/layouts/left_nav.html.erb', __FILE__), 'app/views/layouts/left_nav.html.erb' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin_help-0.1.4 | lib/generators/admin_help/install_generator.rb |