Sha256: 22bcd550c112df25abf0558fb7b82b19e17a4ae38c000ce089a7fa52484e986c
Contents?: true
Size: 362 Bytes
Versions: 20
Compression:
Stored size: 362 Bytes
Contents
class ComponentsGenerator < Rails::Generators::NamedBase source_root File.expand_path('templates', __dir__) def add_component @family = name.underscore.pluralize # Force plural @family_cst = @family.camelize.pluralize # Force plural %w[Destroy Edit Form New].each do |comp_cst| generate "component #{name}::#{comp_cst}" end end end
Version data entries
20 entries across 20 versions & 1 rubygems