lib/ripple.rb in ripple-0.7.0 vs lib/ripple.rb in ripple-0.7.1
- old
+ new
@@ -21,13 +21,29 @@
# the basic Riak client.
module Ripple
extend ActiveSupport::Autoload
include ActiveSupport::Configurable
+ # Primary models
autoload :EmbeddedDocument
autoload :Document
+
+ # Model mixins and support classes
+ autoload :Association, "ripple/associations"
+ autoload :Associations
+ autoload :AttributeMethods
+ autoload :Callbacks
+ autoload :Conversion
+ autoload :Properties
+ autoload :Property, "ripple/properties"
+ autoload :Timestamps
+ autoload :Validations
+
+ # Exceptions
autoload :PropertyTypeMismatch
+
+ # Utilities
autoload :Translation
DEFAULT_CONFIG = {}
class << self
@@ -44,10 +60,10 @@
def config=(hash)
self.client = nil
super
end
-
+
def load_config(config_file)
self.config = YAML.load_file(File.expand_path config_file).with_indifferent_access[:ripple]
end
end
end