Module: DataDictionarySetsHelper

Defined in:
app/helpers/data_dictionary_sets_helper.rb

Overview

== Schema Information

Table name: data_dictionary_sets

id :integer not null, primary key
set_name :string(255)
destination :string(255)
default_set :boolean

View helper for data dictionary sets.

Instance Method Summary collapse

Instance Method Details

#setup_data_dictionary_set(dds) ⇒ DataDictionarySet

Ensures the data dictionary set has at least one new data dictionary record.

Parameters:

Returns:



17
18
19
20
21
# File 'app/helpers/data_dictionary_sets_helper.rb', line 17

def setup_data_dictionary_set(dds)
  dds.tap do
    dds.data_dictionaries.build unless dds.data_dictionaries.find(&:new_record?)
  end
end