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