Class: Rose::ActiveRecordAdapter

Inherits:
ObjectAdapter show all
Defined in:
lib/rose/active_record.rb

Overview

This class is provides ActiveRecord models the ability to run reports

Class Method Summary collapse

Methods inherited from ObjectAdapter

osmosis

Methods included from CoreExtensions

#require_keys, #required_values

Class Method Details

.sprout(seedling, options = {}) ⇒ Object

See Also:

  • ObjectAdapter#sprout


8
9
10
11
12
13
14
15
# File 'lib/rose/active_record.rb', line 8

def self.sprout(seedling, options={})
  table = nil
  options[:class].transaction do
    table = super(seedling, options)
    raise ActiveRecord::Rollback
  end
  table
end