georgepalmer-couch_foo 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -1
- data/VERSION.yml +1 -1
- data/lib/couch_foo/attribute_methods.rb +3 -4
- data/lib/couch_foo/base.rb +1 -0
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -23,7 +23,8 @@ It is recommend that you read the quick start and performance sections in the rd
|
|
23
23
|
|
24
24
|
== Getting started
|
25
25
|
|
26
|
-
CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", <yourcouchdbversion>)
|
26
|
+
CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", <yourcouchdbversion>)
|
27
|
+
CouchFoo::Base.logger = Rails.logger
|
27
28
|
|
28
29
|
If using with Rails you will need to create an initializer to do this (until proper integration is added)
|
29
30
|
|
data/VERSION.yml
CHANGED
@@ -119,9 +119,8 @@ module CouchFoo
|
|
119
119
|
end
|
120
120
|
|
121
121
|
# Define an attribute reader method
|
122
|
-
def define_read_method(
|
123
|
-
|
124
|
-
evaluate_attribute_method symbol.to_s, "def #{symbol}; read_attribute('#{access_code}'); end"
|
122
|
+
def define_read_method(attr_name)
|
123
|
+
evaluate_attribute_method attr_name, "def #{attr_name}; read_attribute('#{attr_name}'); end"
|
125
124
|
end
|
126
125
|
|
127
126
|
# Defines a predicate method <tt>attr_name?</tt>
|
@@ -313,4 +312,4 @@ module CouchFoo
|
|
313
312
|
read_attribute_before_type_cast(attribute_name)
|
314
313
|
end
|
315
314
|
end
|
316
|
-
end
|
315
|
+
end
|
data/lib/couch_foo/base.rb
CHANGED
@@ -203,6 +203,7 @@ module CouchFoo
|
|
203
203
|
# follwing will do the trick:
|
204
204
|
#
|
205
205
|
# CouchFoo::Base.set_database("http://localhost:5984/opnli_dev", 0.8)
|
206
|
+
# CouchFoo::Base.logger = Rails.logger
|
206
207
|
#
|
207
208
|
# A few tidbits:
|
208
209
|
# * When specifying associations you still need to specify the object_id and object_type (if using polymorphic association) properties. We have this automated as part of the association macro soon
|