Sha256: f6bb1dd379e03b3fe2fa73085358e2d9a3bc89d82c204edb34723ae07d953a39
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
class SimpleFormInstallGenerator < Rails::Generators::Base desc "Copy SimpleForm default files" def self.source_root @_source_root = File.expand_path('../templates', __FILE__) end 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 copy_file '_form.html.erb', 'lib/templates/erb/scaffold/_form.html.erb' end end
Version data entries
4 entries across 4 versions & 1 rubygems