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