Problems with new version

18 views
Skip to first unread message

Matt

unread,
Jun 18, 2012, 1:28:46 PM6/18/12
to cant...@googlegroups.com
I've been trying to get CanTango to work with my application for about a week and recently decided to try the new multi-gem version. The first problem is that the cantango-roles gem requires cantango-config (~> 0.1.9), so I changed the gemfile to use the current version. But then, I run into a problem with configuration:

(eval):3:in `roles': undefined method `instance' for Roles:Module (NoMethodError)
from .../config/initializers/cantango.rb:16:in `block in <top (required)>'
from .../bundler/gems/cantango-config-8ab33065dc73/lib/cantango/class_methods.rb:8:in `configure'

In cantango-config/lib/cantango/config/class_methods, it's building the #rules method, but I don't understand the conf::#{conf_module.to_s.camelize}.instance. It seems like that would probably lead to (CanTango::Config.instance)::Roles.instance. I tried switching it to CanTango::Config::Roles.instance, but that didn't work either. In that case it seemed that there was a Roles module in addition to the Config::Roles class, and they were being confused.

Anyway, I'd love to help get the new version working because I'm trying to add Rolify functionality, so let me know if you have any ideas about how to get it running. Thanks!
Reply all
Reply to author
Forward
0 new messages