Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActiveRecord::Base.transaction do
- @var_types.each_with_index do |var,index|
- begin
- var.save!
- puts "saving"
- rescue
- puts "rescued"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement