Sha256: bed73d6b20dee448b2bb8ae537e9ff18cb12957475a979296abf70241009f902
Contents?: true
Size: 662 Bytes
Versions: 41
Compression:
Stored size: 662 Bytes
Contents
associated_form = render :partial => "#{subform_partial_for_column(@column)}_record", :locals => {:scope => @scope, :parent_record => @parent_record, :column => @column, :locked => @record.new_record? && @column.singular_association?} options = {:singular => false} if @column.singular_association? options[:singular] = true else unless @record.new_record? column = active_scaffold_config_for(@record.class).columns[@record.class.primary_key] options[:id] = active_scaffold_input_options(column, @scope)[:id] end end page.call 'ActiveScaffold.create_associated_record_form', sub_form_list_id(:association => @column.name), associated_form, options
Version data entries
41 entries across 41 versions & 4 rubygems