class Rails::Generators::GeneratedAttribute
Public Instance Methods
Source
# File lib/rails/generators/mongoid_generator.rb, line 22 def type_class return "Time" if type == :datetime return "String" if type == :text return "Mongoid::Boolean" if type == :boolean type.to_s.camelcase end