Method: Mongify::Configuration#no_sql_connection
- Defined in:
- lib/mongify/configuration.rb
#no_sql_connection(options = {}, &block) ⇒ Object
Returns a sql_connection If a block is given, it will be executed on the connection For more information, see Database::NoSqlConnection
41 42 43 44 45 |
# File 'lib/mongify/configuration.rb', line 41 def no_sql_connection(={}, &block) @no_sql_connection ||= Mongify::Database::NoSqlConnection.new() @no_sql_connection.instance_exec(&block) if block_given? @no_sql_connection end |