jcasimir/draper — Issue #41: I'm being forced to use "allows"
Author: justinko
Created: 2011-10-09 18:31:27+00:00
State: open

Currently, I'm being forced to use "allows". This is because of the way Draper is getting the instance methods:

ruby-1.9.2-p290 :009 > LeadHandler.public_methods.sort.grep(/add_searchable/)
=> []
ruby-1.9.2-p290 :010 > LeadHandler.methods.sort.grep(/add_searchable/)
=> []
ruby-1.9.2-p290 :011 > LeadHandler.instance_methods.sort.grep(/add_searchable/)
=> [:add_searchable_profiles]

I'd love to dig in and find out why instance_methods is including the method but not the others, but sadly I have no time right now :(