Sha256: a0555bcbb9b586d0829dbe02b995df35f7c09788bba96e6cb984d55ed703ce27

Contents?: true

Size: 213 Bytes

Versions: 20

Compression:

Stored size: 213 Bytes

Contents

class MotionPrime::ModelGenerator < MotionPrime::Generator
  def generate(name)
    @name = name.downcase.singularize
    @class_name = "#{name.camelize}"
    template 'model.rb', "app/models/#{name}.rb"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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