Sha256: 109b4ab1cab61dbc37f7e1bc8c62a03fa203c91e21c2368a8d8b8569ec77b0d9

Contents?: true

Size: 430 Bytes

Versions: 20

Compression:

Stored size: 430 Bytes

Contents

class MotionPrime::TableGenerator < MotionPrime::Generator
  def generate(name)
    @name = name.downcase.singularize
    @model_class_name = "#{name.camelize}"
    @table_class_name = "#{name.pluralize.camelize}TableSection"
    @cell_class_name = "#{name.pluralize.camelize}CellSection"
    template 'table.rb', "app/sections/#{name.pluralize}/table.rb"
    template 'cell.rb', "app/sections/#{name.pluralize}/cell.rb"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
motion-prime-1.0.7 generators/table_generator.rb
motion-prime-1.0.6 generators/table_generator.rb
motion-prime-1.0.5 generators/table_generator.rb
motion-prime-1.0.4 generators/table_generator.rb
motion-prime-1.0.3 generators/table_generator.rb
motion-prime-1.0.2 generators/table_generator.rb
motion-prime-1.0.1 generators/table_generator.rb
motion-prime-1.0.0 generators/table_generator.rb
motion-prime-0.9.9.2 generators/table_generator.rb
motion-prime-0.9.9.1 generators/table_generator.rb
motion-prime-0.9.9 generators/table_generator.rb
motion-prime-0.9.8 generators/table_generator.rb
motion-prime-0.9.7 generators/table_generator.rb
motion-prime-0.9.6 generators/table_generator.rb
motion-prime-0.9.5 generators/table_generator.rb
motion-prime-0.9.4 generators/table_generator.rb
motion-prime-0.9.3 generators/table_generator.rb
motion-prime-0.9.2 generators/table_generator.rb
motion-prime-0.9.1 generators/table_generator.rb
motion-prime-0.9.0 generators/table_generator.rb