Module: LegacyData

Defined in:
lib/legacy_data.rb,
lib/legacy_data/schema.rb,
lib/legacy_data/table_definition.rb,
lib/legacy_data/table_class_name_mapper.rb

Defined Under Namespace

Classes: Schema, TableClassNameMapper, TableDefinition

Class Method Summary collapse

Class Method Details

.conventional_class_name(table_name) ⇒ Object

In Rails 2.3 this was ActiveRecord::Base.class_name but it no longer exists in Rails 3



11
12
13
# File 'lib/legacy_data.rb', line 11

def self.conventional_class_name table_name
  table_name.underscore.downcase.pluralize.camelize.singularize
end