HI All, I have an issue where I created a custom rake task. However, I cannot even get to the point where the task tries to run if I use :message in a property. The task fails when trying to load the model files I use. If I remove :message from the property the rake task runs fine. However, the problem only shows up in the custom rake task. The specs and app itself work fine with :message.
I have a model called User.rb with the following: property :encrypted_password, String, :length => 64, :required => true, :message => " Password must be between 8 and 24 characters long My rake task has the following: 1 require 'rubygems' 2 require 'dm-core' 3 require 'digest' 4 FileList['app/models/*.rb'].each do |file| 5 load file 6 end When I run the task or even run "rake --tasks" I get the following error: rake aborted! options :message are unknown /nfs/ch/disks/ch_home_disk002/lggodin/projects/executer/Rakefile:10 Now if I take the :message option off of the encrypted_password property it works fine. Has anyone encountered this? I'm at a complete loss on how to even troubleshoot. Any help would be appreciated. I wonder if there is a better way to load the model files than what I am using (FileList.each). -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
