Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/empty_eye/active_record/connection_adapter.rb
Instance Method Summary collapse
-
#tables_without_views ⇒ Object
we need this logic to correctly build schema file.
Instance Method Details
#tables_without_views ⇒ Object
we need this logic to correctly build schema file
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/empty_eye/active_record/connection_adapter.rb', line 5 def tables_without_views #trying to make compatible with rails 2.3.x; failing if respond_to?('execute_and_free') execute_and_free(tables_without_views_sql) do |result| result.collect { |field| field.first } end else result = execute(tables_without_views_sql) rtn = result.collect { |field| field.first } result.free rescue nil rtn end end |