Sha256: 85401b17d39a2f1340eb665164602816427e75e70917bd7f7b4fcfea87ead7e6
Contents?: true
Size: 688 Bytes
Versions: 10
Compression:
Stored size: 688 Bytes
Contents
# encoding: utf-8 module Formtastic # Copies a config initializer to config/initializers/formtastic.rb # # @example # !!!shell # $ rails generate formtastic:install class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../templates', __FILE__) class_option :template_engine desc "Copies a config initializer to config/initializers/formtastic.rb" def copy_files copy_file 'formtastic.rb', 'config/initializers/formtastic.rb' end def copy_scaffold_template engine = options[:template_engine] copy_file "_form.html.#{engine}", "lib/templates/#{engine}/scaffold/_form.html.#{engine}" end end end
Version data entries
10 entries across 10 versions & 3 rubygems