Sha256: 1c15b08807b4e241c43b4c55699fdc41fd7ee68289759be269b2bf7cff8e8d00

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

module Lotus
  module Validations
    # @since 0.3.1
    # @api private
    class NestedAttributes
      # @since 0.3.1
      # @api private
      def self.fabricate(&blk)
        dup.tap do |klass|
          klass.class_eval { include Lotus::Validations }
          klass.class_eval(&blk)
        end
      end

      # @since 0.3.1
      # @api private
      def lotus_nested_attributes?
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lotus-validations-0.4.0 lib/lotus/validations/nested_attributes.rb
lotus-validations-0.3.3 lib/lotus/validations/nested_attributes.rb
lotus-validations-0.3.2 lib/lotus/validations/nested_attributes.rb
lotus-validations-0.3.1 lib/lotus/validations/nested_attributes.rb