在我的创业板模块包含在其他宝石类,它是由一个自定义类的Rails应用程序扩展一个类模块: 我的宝石: module MyGem
def my_method
end
end
AnotherGem.send :include, MyGem
另一宝石: class AnotherGem
end
类中的Rails应用: class ClassInRailsApp < An
无法在Kohana中启动项目。我从github克隆了它,而不是在配置文件中设置我的数据库信息,并得到错误:无法重新声明类。 我有2个方法自动加载函数。 public static function auto_load($class, $directory = 'classes')
{
// Transform the class name according to PSR-0