Class: Lotus::Validations::NestedAttributes Private
- Inherits:
-
Object
- Object
- Lotus::Validations::NestedAttributes
- Defined in:
- lib/lotus/validations/nested_attributes.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .fabricate(&blk) ⇒ Object private
Instance Method Summary collapse
Class Method Details
.fabricate(&blk) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 |
# File 'lib/lotus/validations/nested_attributes.rb', line 8 def self.fabricate(&blk) dup.tap do |klass| klass.class_eval { include Lotus::Validations } klass.class_eval(&blk) end end |
Instance Method Details
#lotus_nested_attributes? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/lotus/validations/nested_attributes.rb', line 17 def lotus_nested_attributes? true end |