Module: ShouldaMatchmakers::Model::ActiveRecord::Matchmaker::AcceptNestedAttributesFor

Included in:
ActiveRecordModelSmModel
Defined in:
lib/model/active_record/matchmakers/accept_nested_attributes_for.rb

Instance Method Summary collapse

Instance Method Details

#accept_nested_attributes_for_matcher_testsObject



8
9
10
11
12
13
14
15
# File 'lib/model/active_record/matchmakers/accept_nested_attributes_for.rb', line 8

def accept_nested_attributes_for_matcher_tests
 nested_attributes_options = @app_class_name.constantize.nested_attributes_options
 if nested_attributes_options.present?
   generate_accept_nested_attributes_for_matcher_tests(nested_attributes_options)
 else
   []
 end
end