Adds an Ref with the given Ref#name to #refs and immediately saves it to the database.
Parameters:
Ref#name.
Returns:
if save was successful.
if save was unsuccessful.
355 356 357
# File 'app/models/mdm/module/detail.rb', line 355 def add_ref(name) self.refs.build(:name => name).save end