diff options
| author | Alban Peignier | 2012-07-13 10:54:43 +0200 |
|---|---|---|
| committer | Alban Peignier | 2012-07-13 10:54:43 +0200 |
| commit | 24fed642540fdf1171b8adeaba5fe7a6bc54a4f5 (patch) | |
| tree | 3edb31554957006269a745b58ac69371e81550ef | |
| parent | cd41d9ad4c239dd534f807795fda0f3853354468 (diff) | |
| download | chouette-core-24fed642540fdf1171b8adeaba5fe7a6bc54a4f5.tar.bz2 | |
Use Referential.pluck to load Reference slugs
| -rw-r--r-- | config/initializers/apartment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/apartment.rb b/config/initializers/apartment.rb index 4d9b11b3c..7d1e93622 100644 --- a/config/initializers/apartment.rb +++ b/config/initializers/apartment.rb @@ -3,5 +3,5 @@ Apartment.configure do |config| config.excluded_models = ["Referential", "User", "Import", "ImportLogMessage", "Export", "ExportLogMessage", "Delayed::Backend::ActiveRecord::Job"] # these models will not be multi-tenanted, but remain in the global (public) namespace # Dynamically get database names to migrate - config.database_names = lambda{ Referential.select(:slug).map(&:slug) } + config.database_names = lambda{ Referential.pluck(:slug) } end |
