travis-ci
389 of 396 relevant lines covered (98.23%)
914.2 hits per line
1 |
module Lotus |
15 all except jruby-9000 and jruby-head ✔ |
2 |
module Validations |
15 all except jruby-9000 and jruby-head ✔ |
3 |
# @since 0.3.1
|
|
4 |
# @api private
|
|
5 |
class NestedAttributes |
15 all except jruby-9000 and jruby-head ✔ |
6 |
# @since 0.3.1
|
|
7 |
# @api private
|
|
8 |
def self.fabricate(parent_validator_klass, &blk) |
15 all except jruby-9000 and jruby-head ✔ |
9 |
dup.tap do |klass|
|
15 all except jruby-9000 and jruby-head ✔ |
10 |
klass.class_eval { include Lotus::Validations } |
29 all except jruby-9000 and jruby-head ✔ |
11 |
klass.class_eval { @parent_validator_klass = parent_validator_klass }
|
29 all except jruby-9000 and jruby-head ✔ |
12 |
klass.class_eval(&blk) |
15 all except jruby-9000 and jruby-head ✔ |
13 |
end
|
|
14 |
end
|
|
15 |
|
|
16 |
# @since 0.3.1
|
|
17 |
# @api private
|
|
18 |
def lotus_nested_attributes? |
15 all except jruby-9000 and jruby-head ✔ |
19 |
true
|
× |
20 |
end
|
× |
21 |
end
|
|
22 |
end
|
|
23 |
end
|