override "new_model"

def new_model
  model = super
  if nested? and model.is_a?(VolunteerOpportunity) 
and @nested_parent_record.is_a?(Event)
    model.start_time = @nested_parent_record.start_time
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to