Module: Ardm::Ar::Base

Extended by:
ActiveSupport::Concern
Includes:
Associations, Dirty, Finalize, Hooks, Inheritance, Is, Persistence, Property, Query, Repository, StorageNames, Validations
Included in:
Record
Defined in:
lib/ardm/ar/base.rb

Overview

Include all the Ardm modules.

You can use this directly if you want your own abstract base class.

require 'ardm/active_record/base'

class MyRecord < ActiveRecord::Base
  include Ardm::Ar::Base
end

Or Ardm::ActiveRecord::Base is built in to Ardm::Record

require 'ardm/active_record/record'

class MyRecord < Ardm::Record
  # already included
end

Method Summary

Methods included from Validations

extract_options

Methods included from Repository

#repository

Methods included from Query

order

Methods included from Property

#assign_attributes, #attribute_get, #attribute_set, extended, #fields, #initialize_ardm_property_defaults, #key, #properties, #reset_key

Methods included from Persistence

#destroy, #new?, #save, #save!, #save_self, #saved?, #update, #update!

Methods included from Dirty

#dirty?, #dirty_attributes, #method_missing

Methods included from Finalize

finalize, finalizers, on_finalize

Methods included from Associations

convert_options

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ardm::Ar::Dirty