class Rails::Generators::GeneratedAttribute
Public Instance Methods
type_class()
click to toggle source
# File lib/generators/opium/model_generator.rb, line 6 def type_class case type.to_s when 'datetime' 'DateTime' when 'file' 'Opium::File' when 'geopoint', 'geo_point' 'Opium::GeoPoint' when 'boolean', 'bool' 'Opium::Boolean' else type.to_s.camelcase end end