lib/tasks/populate.rake in smilodon-0.3.10 vs lib/tasks/populate.rake in smilodon-0.3.11
- old
+ new
@@ -24,8 +24,8 @@
rescue
raise Exception, 'Missing configuration file. Add a populate.yml in the project directory or in the config/ directory for rails projects.' unless File.exists?(path)
end
def populators
- defined?(Rails) ? configuration['populators'] : configuration[:populators]
+ (defined?(Rails) ? configuration['populators'] : configuration[:populators]) || []
end
end