Class RBatis::Base
In: lib/rbatis/rails_integration.rb
Parent: Object

This is class should be used as a base-class when using RBatis with the Ruby on Rails framework.

Methods

Included Modules

Repository ::Reloadable::Subclasses ActiveRecord::Validations

Public Class methods

Creates new instance can optionally pass Hash to initialize all attributes.

Public Instance methods

Updates attributes in passed Hash.

Called by the RBatis framework when loaded, sets new_record? to false so that save works properly.

If new_record? returns true it calls the insert statement defined on this class, otherwise it calls the update statement.

Just calls save, hook for Ruby on Rails.

Calls name= with new value.

[Validate]