lib/partitioned/partitioned_base.rb in partitioned-1.1.7 vs lib/partitioned/partitioned_base.rb in partitioned-1.1.8

- old
+ new

@@ -307,11 +307,11 @@ # # A reasonable alias for this table # partition.table_alias_name lambda {|model, *partition_key_values| - return model.table_name + return model.table_name.gsub(/[^a-zA-Z0-9]/, '_') } # # The name of the child table without a schema name or prefix. this is used to # build child table names for multi-level partitions. @@ -442,9 +442,9 @@ ## # :method: partition_table_alias_name # delegated to Partitioned::PartitionedBase::PartitionManager#partition_table_alias_name def self.partition_table_alias_name(*partition_key_values) - return partition_manager.partition_table_alias_name(*partition_key_values) + return partition_manager.partition_table_alias_name(*partition_key_values).gsub(/[^a-zA-Z0-9]/, '_') end end end