Method: PostgresqlWeb::Connection#is_pg_activerecord?
- Defined in:
- lib/postgresql_web/connection.rb
#is_pg_activerecord? ⇒ Boolean
27 28 29 |
# File 'lib/postgresql_web/connection.rb', line 27 def is_pg_activerecord? defined?(Rails) and defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.adapter_name == "PostgreSQL" end |