Sha256: 89ceeec22fa88806f09a145835565f4b2333028d03e6103ab5a9be25c5def8d1
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
# encoding: utf-8 # # Copyright (C) 2011-2012 AdMaster, Inc. module <%= module_name %> class <%= camelize name %> < Apimaster::Mapper include Mongoid::Document field :title, type: String field :content, type: String attr_options :title, accessor: [:list], required: [:post] attr_options :content, accessor: [:get], required: [:post] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apimaster-0.0.3 | lib/apimaster/generators/templates/app/models/example.rb.erb |