caged/lighthouse-api

"milestones" method not working for projects

Opened this issue · 0 comments

There appears to be something wrong with the "milestones" methods for individual projects:

>> p.milestones
ArgumentError: expected an attributes Hash, got "1"
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:1217:in `load'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:965:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:889:in `new'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:889:in `instantiate_record'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:885:in `instantiate_collection'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:885:in `collect!'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:885:in `instantiate_collection'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:857:in `find_every'
    from /Library/Ruby/Gems/1.8/gems/activeresource-3.0.14/lib/active_resource/base.rb:777:in `find'
    from /Library/Ruby/Gems/1.8/gems/lighthouse-api-2.0/lib/lighthouse/project.rb:55:in `milestones'

Do you have a quick fix for this? If not, I can do some investigating on my own.