lib/earth/model.rb in earth-1.0.0 vs lib/earth/model.rb in earth-1.0.1
- old
+ new
@@ -21,10 +21,10 @@
if Earth.mine_original_sources
path = File.join(File.dirname(target.source_file), File.basename(target.source_file, '.rb'), 'data_miner')
require path if File.exist?(path + '.rb')
target.data_miner_script.prepend_once :process, :create_table!
else
- target.data_miner_script.prepend_once :sql, "Brighter Planet's reference data", "http://data.brighterplanet.com/#{to_s.underscore.pluralize}.sql"
+ target.data_miner_script.prepend_once :sql, "Brighter Planet's reference data", "http://data.brighterplanet.com/#{target.to_s.underscore.pluralize}.sql"
end
target.data_miner_script.append_once :process, :run_data_miner_on_parent_associations!
end
module Schema