Module: ShadyDB

Defined in:
lib/shadydb/finders.rb,
lib/shadydb/document.rb,
lib/shadydb/attributes.rb,
lib/shadydb/persistence.rb,
lib/shadydb/configuration.rb,
lib/shadydb/extensions/string/helpers.rb

Defined Under Namespace

Modules: Attributes, Extensions, Finders, Persistence Classes: Configuration, Document

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Configure ShadyDB someplace sensible, like config/initializers/shadydb.rb

Examples:

ShadyDB.configure do |config|
  config.data_directory     = Rails.root.join('db','shadydb')
  config.format             = :json
end


24
25
26
# File 'lib/shadydb/configuration.rb', line 24

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



29
30
31
32
# File 'lib/shadydb/configuration.rb', line 29

def self.configure
  self.configuration 
  yield(configuration)
end