def some_usefull_regular_action
raise 'method must call with transaction. Rollback' unless ActiveRecord::Base.connection.transaction_open?
operation A
operation B
end
def my_action
ActiveRecord::Base.connection.transaction do
some_usefull_regular_action()
operation C
end
end