Class: MatViews::ApplicationRecord Abstract

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
MatViewsI18n
Defined in:
app/models/mat_views/application_record.rb

Overview

This class is abstract.

Base model class for all ActiveRecord models in the mat_views engine.

Inherits from ActiveRecord::Base and marks itself as an abstract class. Other engine models should subclass this rather than inheriting directly from ActiveRecord::Base, so that shared behavior or configuration can be applied in one place.

Examples:

Define a new model under mat_views

class MatViews::MatViewDefinition < MatViews::ApplicationRecord
  self.table_name = "mat_view_definitions"
end

Direct Known Subclasses

MatViewDefinition, MatViewRun

Method Summary

Methods included from MatViewsI18n

hint_for, human_enum_name, human_enum_options, human_name, placeholder_for