search for: transactionattributes

Displaying 1 result from an estimated 1 matches for "transactionattributes".

2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
...rn @resource.success = "ok" end rescue Exception => e # TODO Need to figure out how to pass exception message back to controller return @resource.errors end end end end Resource Model class Resource < ActiveRecord::Base include TransactionAttributes attr_accessible :resource_name, :resource_type, :source_id, :teacher_id, :student_id, :success, :errors belongs_to :teacher, :class_name => "Teacher", :foreign_key => "teacher_id" belongs_to :student, :class_name => "Student", :foreign_key => "stud...