Sha256: 0f6ab5ac84920dfbedc8962b40984d2ce37b62b1cd99a43f0e54f9c6a37d9469

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

require 'rails/generators'

module Railwind
    class CheckboxGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)
  
      def create_component_file
        copy_file "checkbox/checkbox_component.rb", "app/components/checkbox_component.rb"
        copy_file "checkbox/_checkbox_component.html.erb", "app/components/checkbox_component.html.erb"
      end
    end
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railwind-0.1.26 lib/railwind/generators/checkbox_generator.rb