Sha256: e3501386c59a05559f015949e43c54d7552586911c24ed2573c4626d31a5bab4
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
require 'refinery/extension_generation' require 'rails/generators/migration' module Refinery class FormGenerator < Rails::Generators::NamedBase source_root Pathname.new(File.expand_path('../templates', __FILE__)) include Refinery::ExtensionGeneration def description "Generates an extension which is set up for frontend form submissions like a contact page." end def generate sanity_check! evaluate_templates! unless options[:pretend] merge_locales! copy_or_merge_seeds! append_extension_to_gemfile! end finalize_extension! end protected def generator_command 'rails generate refinery:form' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-core-2.0.10 | lib/generators/refinery/form/form_generator.rb |
refinerycms-core-2.0.9 | lib/generators/refinery/form/form_generator.rb |