search for: load_fianet

Displaying 1 result from an estimated 1 matches for "load_fianet".

2011 Dec 22
0
Problems with database config and prepare_to method
...ile. After some research I figured out that one of my custom plugins is causing the problem. The problem is comming from the initializer of the plugin where I do : require "#{File.dirname(__FILE__)}/lib/fianet_order" config.to_prepare do if AppConfig.fianet.enabled load_fianet end end We need to use the config.to_prepare because we want that it only loads 1 time when it is the production environment and reload everytime in development mode. In load_fianet we do a class_eval on a model to add some specific methods. If I delete this code, the rake tasks and ra...