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

Instance Method Summary collapse

Instance Method Details

#setup_data_dictionary_set(dds) ⇒ Object



13
14
15
16
17
# File 'app/helpers/data_dictionary_sets_helper.rb', line 13

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