Class: ActiveRecord::ConnectionAdapters::SchemaCache

Inherits:
Object
  • Object
show all
Defined in:
lib/spare/schema_cache.rb

Instance Method Summary collapse

Instance Method Details

#stored_procedure(sp_name) ⇒ Object

Get the stored procedure



6
7
8
9
# File 'lib/spare/schema_cache.rb', line 6

def stored_procedure(sp_name)
  @stored_procedure ||= {}
  @stored_procedure[sp_name] ||= connection.stored_procedure(sp_name)
end