Sha256: 55842444530b2444437e82235b28754cd593ba982dfea2c6e2e7c97b9c68a8b0
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 Bytes
Contents
class MongoModelGenerator < Rails::Generators::NamedBase argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" def self.source_root @source_root ||= File.expand_path('../templates', __FILE__) end def create_model_file template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") end # hook_for :test_framework end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mongo_model-0.2.1 | lib/generators/mongo_model/mongo_model_generator.rb |
mongo_modl-0.2.1 | lib/mongo_model_generator.rb |