Class: Lotus::Validations::NestedAttributes Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.3.1

Class Method Summary collapse

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.

Since:

  • 0.3.1



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.

Returns:

  • (Boolean)

Since:

  • 0.3.1



17
18
19
# File 'lib/lotus/validations/nested_attributes.rb', line 17

def lotus_nested_attributes?
  true
end