Module: Spare::Core
- Included in:
- ActiveRecord::StoredProcedure
- Defined in:
- lib/spare/core.rb
Instance Method Summary collapse
-
#inspect ⇒ Object
Returns a string like ‘MyStoredProcedure(p_id:integer, p_title:string, p_body:text)’.
Instance Method Details
#inspect ⇒ Object
Returns a string like ‘MyStoredProcedure(p_id:integer, p_title:string, p_body:text)’
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/spare/core.rb', line 4 def inspect if self == Base super elsif abstract_class? super elsif table_exists? super else "#{name}(Stored procedure doesn't exist)" end end |