ActiveRecord is easy to use and easy to extend.
ActiveRecord易于使用和扩展。
As you can see, by default the Patient class simply extends ActiveRecord.
可以看到,默认情况下patient类仅仅扩展了ActiveRecord。
To keep the example simple, ActiveRecord does not actually run the SQL code.
为了让这个示例尽量简单,ActiveRecord并不会实际运行SQL代码。
It is basically an abstract implementation of the ActiveRecord design pattern.
它基本上是ActiveRecord设计模式的抽象实现。
With ActiveRecord, you can also nest the: include option, but only one level deep.
通过ActiveRecord,还可以嵌套:include选项,但嵌套深度只有一级。
In some initialization code, open the ActiveRecord base class and add your acts_as_ module.
在某些初始化代码中,打开ActiveRecord基类并添加acts_as _模块。
In some initialization code, open the ActiveRecord base class and add your acts_as_ module.
在某些初始化代码中,打开ActiveRecord基类并添加acts_as _模块。
应用推荐