diff options
author | James Lopez <james@jameslopez.es> | 2016-09-07 10:14:47 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-09-09 15:56:10 +0300 |
commit | 0f15e971fc8c06a4c76eaaad16abe4229816a676 (patch) | |
tree | 3b25ee30d4273d15486dd14671fb8e0f6b67b09f /spec/support/import_export | |
parent | 1631ceff19025714d71ef0f91bf247d1d12cefdb (diff) |
more spec refactoring based on feedback
Diffstat (limited to 'spec/support/import_export')
-rw-r--r-- | spec/support/import_export/configuration_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/import_export/configuration_helper.rb b/spec/support/import_export/configuration_helper.rb index d7582057c83..3276313df51 100644 --- a/spec/support/import_export/configuration_helper.rb +++ b/spec/support/import_export/configuration_helper.rb @@ -22,4 +22,10 @@ module ConfigurationHelper attributes end + + def associations_for(model_class) + model_class.reflect_on_all_associations.map do |association| + association.name.to_s + end + end end |