Sha256: f038905865c85cd8447ee2e5fc28609d740ed14566328bea365dce431dcfd068

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

module Slayer
  module Generators
    class FormGenerator < NamedBase
      desc "This generator creates new Slayer::Forms"

      source_root File.expand_path("../templates", __FILE__)
      check_class_collision suffix: "Form"

      def create_form_files
        template "form.rb", File.join("app", "forms", class_path, "#{file_name}_form.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slayer_rails-0.3.0 lib/generators/form/form_generator.rb
slayer_rails-0.1.0 lib/generators/form/form_generator.rb