Module: Kalimba::Persistence

Included in:
Redlander
Defined in:
lib/kalimba/persistence/redlander.rb

Defined Under Namespace

Modules: Redlander

Constant Summary collapse

REPOSITORY_OPTIONS_MAPPING =

Mapping of database options from Rails’ database.yml to those that Redland::Model expects

{
  "adapter" => :storage,
  "database" => :name
}

Class Method Summary collapse

Class Method Details

.backendObject



14
15
16
# File 'lib/kalimba/persistence/redlander.rb', line 14

def backend
  Kalimba::Persistence::Redlander
end

.repository(options = {}) ⇒ Object



18
19
20
# File 'lib/kalimba/persistence/redlander.rb', line 18

def repository(options = {})
  ::Redlander::Model.new(remap_options(options))
end