Module: Declarative::Schema::Feature
- Defined in:
- lib/declarative/schema.rb
Instance Method Summary collapse
-
#feature(*mods) ⇒ Object
features are registered as defaults using _features, which in turn get translated to Class.new…
Instance Method Details
#feature(*mods) ⇒ Object
features are registered as defaults using _features, which in turn get translated to Class.new… { feature mod } which makes it recursive in nested schemas.
88 89 90 91 92 93 |
# File 'lib/declarative/schema.rb', line 88 def feature(*mods) mods.each do |mod| include mod register_feature(mod) end end |