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



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

def setup_data_dictionary_set(dds)
  dds.tap do
    dds.data_dictionaries.build unless dds.data_dictionaries.detect{|d| d.new_record?}
  end
end