I'm trying to pass in conditions to a find command in a rake task. I'm
still a little new to this, but what is the best practices for this?
Should I be passing in a hash or.. Any suggestions welcome!
command line: rake mytask conditions='condition = 1'
ENV['conditions'] || ENV['conditions'] || nil
task :metadata => :environment do
klass.find_each(:start => start, :conditions => conditions) do