Sha256: 783e964ebe51dda02b61d595a5833f6908b7f0167f87ac9d1c075eb99c004010

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

class ComponentGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      m.class_collisions "#{class_name}Component"
      m.directory "app/components/#{file_name}"
      m.template "component_template.rb", "app/components/#{file_name}_component.rb"

      actions.each do |action|
        m.template "view_template.rb", "app/components/#{file_name}/#{action}.erb"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
langalex-components-0.0.1 generators/component/component_generator.rb
langalex-components-0.0.2 generators/component/component_generator.rb
langalex-components-0.0.3 generators/component/component_generator.rb
langalex-components-0.0.4 generators/component/component_generator.rb
components-0.0.5 generators/component/component_generator.rb