partitioned 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Partitioned
2
2
  # the current version of this gem
3
- VERSION = "1.1.7"
3
+ VERSION = "1.1.8"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partitioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: