class Rails::Generators::GeneratedAttribute

Public Instance Methods

type_class() click to toggle source
# File lib/rails/generators/guacamole_generator.rb, line 19
def type_class
  return 'Time' if type == :datetime
  return 'String' if type == :text
  return 'Boolean' if type == :boolean
  type.to_s.camelcase
end