Class: Onoma::Record::Base
- Inherits:
-
Object
- Object
- Onoma::Record::Base
show all
- Defined in:
- lib/onoma/record/base.rb
Direct Known Subclasses
Ability, Account, AccountingSystem, ActivityFamily, AdministrativeArea, AdministrativeAreaNature, AnalysisNature, AnimalLifeState, CationExchangeCapacityAnalysisMethod, ChemicalClassification, ChemicalElement, Country, CropSet, Currency, DeliveryMode, Dimension, DocumentCategory, DocumentNature, EntityLinkNature, EventNature, FencePerimeter, Figure, FiscalPosition, GuideNature, IdentifierNature, Indicator, IssueNature, Language, MammaliaBirthCondition, MammaliaReproductionState, Molecule, NetService, OpportunityOrigin, PhosphorusAnalysisMethod, PlantLifeState, PlantReproductionState, PlantsGrowthLevel, ProcedureAction, ProcedureCategory, ProcedureNature, ProcedureRole, ProductNature, ProductNatureCategory, ProductNatureVariant, ProductionNature, ProductionSupportNature, ProductionSystem, ProductionUsage, Onoma::ResidueEliminationMethod, Onoma::Role, Onoma::RunningCost, Sex, SoilCulturalState, SoilNature, SpatialReferenceSystem, Tax, TaxNature, Unit, Variety, WorkingSet
Class Method Summary
collapse
Class Method Details
.method_missing(*args, &block) ⇒ Object
6
7
8
|
# File 'lib/onoma/record/base.rb', line 6
def method_missing(*args, &block)
Onoma.find_or_initialize(name.tableize.sub(%r{\Aonoma/}, '')).send(*args, &block)
end
|
.respond_to?(method_name) ⇒ Boolean
10
11
12
|
# File 'lib/onoma/record/base.rb', line 10
def respond_to?(method_name)
Onoma.find_or_initialize(name.tableize.sub(%r{\Aonoma/}, '')).respond_to?(method_name) || super
end
|