Hi Juan
The const_missing override in DrySQL's dependencies.rb should only try to locate a matching table for the constant if ActiveRecord's const_missing method raises a NameError (i.e. it could not find a declaration for the constant).
Can you please verify your guess that the base_const_missing call is not failing to find the Controller class? Just comment out DrySQL's const_missing method in dependencies.rb, which should mean that ActiveRecord's const_missing method will be used. Do you get a NameError? If not, please attach a stack trace for the scenario in which you see the error that you reported above.
Thanks.
- Bryan
|