Module: Analytic::Utility::ClassMethods

Defined in:
app/models/analytic/utility.rb

Instance Method Summary collapse

Instance Method Details

#execute(sql) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'app/models/analytic/utility.rb', line 8

def execute(sql)
 		status = []
 		begin
 			res = ActiveRecord::Base.connection.execute(sql)
	rescue StandardError => exc
     		status << "Fact Table could not be updated, message : #{exc.to_s}"
   	end
   	status
end