Sha256: 3a94bafabf54d01fe90835ae876787fbfbadc3d63b80e4f4ff0a90b3ccf22895
Contents?: true
Size: 648 Bytes
Versions: 7
Compression:
Stored size: 648 Bytes
Contents
module SimpleForm module Generators class InstallGenerator < Rails::Generators::Base desc "Copy SimpleForm default files" source_root File.expand_path('../templates', __FILE__) class_option :template_engine def copy_initializers copy_file 'simple_form.rb', 'config/initializers/simple_form.rb' end def copy_locale_file copy_file 'en.yml', 'config/locales/simple_form.en.yml' end def copy_scaffold_template engine = options[:template_engine] copy_file "_form.html.#{engine}", "lib/templates/#{engine}/scaffold/_form.html.#{engine}" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems