partitioned 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/partitioned/partitioned_base.rb +2 -2
- data/lib/partitioned/version.rb +1 -1
- metadata +1 -1
@@ -309,7 +309,7 @@ module Partitioned
|
|
309
309
|
# A reasonable alias for this table
|
310
310
|
#
|
311
311
|
partition.table_alias_name lambda {|model, *partition_key_values|
|
312
|
-
return model.table_name
|
312
|
+
return model.table_name.gsub(/[^a-zA-Z0-9]/, '_')
|
313
313
|
}
|
314
314
|
|
315
315
|
#
|
@@ -444,7 +444,7 @@ module Partitioned
|
|
444
444
|
# :method: partition_table_alias_name
|
445
445
|
# delegated to Partitioned::PartitionedBase::PartitionManager#partition_table_alias_name
|
446
446
|
def self.partition_table_alias_name(*partition_key_values)
|
447
|
-
return partition_manager.partition_table_alias_name(*partition_key_values)
|
447
|
+
return partition_manager.partition_table_alias_name(*partition_key_values).gsub(/[^a-zA-Z0-9]/, '_')
|
448
448
|
end
|
449
449
|
end
|
450
450
|
end
|
data/lib/partitioned/version.rb
CHANGED