abstract class Granite::Base
- Granite::Base
- Reference
- Object
Overview
Granite::Base is the base class for your model objects.
Included Modules
- Granite::Associations
- Granite::Callbacks
- Granite::Columns
- Granite::Migrator
- Granite::Select
- Granite::Tables
- Granite::Transactions
- Granite::ValidationHelpers
- Granite::Validators
Extended Modules
- Granite::Columns::ClassMethods
- Granite::Integrators
- Granite::Migrator::ClassMethods
- Granite::Query::BuilderMethods
- Granite::Querying
- Granite::Select
- Granite::Tables::ClassMethods
- Granite::Transactions::ClassMethods
Defined in:
granite/base.crInstance methods inherited from module Granite::Validators
errors
errors,
valid?
valid?
Instance methods inherited from module Granite::Transactions
destroy
destroy,
destroy!
destroy!,
save(*, validate : Bool = true)
save,
save!(*, validate : Bool = true)
save!,
set_timestamps(*, to time = Time.local(Granite.settings.default_timezone), mode = :create)
set_timestamps,
touch(*fields) : Bool
touch,
update(args : Granite::ModelArgs)update(**args) update, update!(args : Granite::ModelArgs)
update!(**args) update!