lib/superstore/model.rb in superstore-1.1.0 vs lib/superstore/model.rb in superstore-1.1.1

- old
+ new

@@ -7,15 +7,15 @@ def table_name @table_name ||= base_class.name.pluralize end def column_family - warn '`column_family` is deprecated & will be removed in superstore 2.0. Use `table_name` instead.' + ActiveSupport::Deprecation.warn '`column_family` is deprecated & will be removed in superstore 2.0. Use `table_name` instead.' table_name end def column_family=(table_name) - warn '`column_family=` is deprecated & will be removed in superstore 2.0. Use `table_name=` instead.' + ActiveSupport::Deprecation.warn '`column_family=` is deprecated & will be removed in superstore 2.0. Use `table_name=` instead.' self.table_name = table_name end def base_class class_of_active_record_descendant(self)