Sha256: 42469ae2e1e2dfb28e68cd4cc3288d00dbe5711ba5ae8c8af63e7d3b08171966
Contents?: true
Size: 304 Bytes
Versions: 3
Compression:
Stored size: 304 Bytes
Contents
module RailsConfigurationHelpers def with_affixed_tables(prefix: "", suffix: "") ActiveRecord::Base.table_name_prefix = prefix ActiveRecord::Base.table_name_suffix = suffix yield ensure ActiveRecord::Base.table_name_prefix = "" ActiveRecord::Base.table_name_suffix = "" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scenic-1.8.0 | spec/support/rails_configuration_helpers.rb |
scenic-1.7.0 | spec/support/rails_configuration_helpers.rb |
scenic-1.6.0 | spec/support/rails_configuration_helpers.rb |