This repository was archived by the owner on Apr 17, 2018. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ created_at: Tue Dec 04 13:27:16 +1030 2007
9
9
================
10
10
11
11
A model's properties are not introspected from the fields in the data-store; In
12
- fact the reverse happens. You declare the properties for a model inside it's
12
+ fact the reverse happens. You declare the properties for a model inside its
13
13
class definition, which is then used to generate the fields in the data-store.
14
14
15
15
This has a few advantages. First it means that a model's properties are
@@ -143,7 +143,7 @@ Lazy Loading
143
143
------------
144
144
145
145
Properties can be configured to be lazy loaded. A lazily loaded property is not
146
- requested from the data-store by default. Instead it is only loaded when it's
146
+ requested from the data-store by default. Instead it is only loaded when its
147
147
accessor is called for the first time. This means you can stop default queries
148
148
from being greedy, a particular problem with text fields. Text fields are lazily
149
149
loaded by default, which you can over-ride if you need to.
253
253
Over-riding Accessors
254
254
---------------------
255
255
256
- When a property has declared accessors for getting and setting, it's values are
256
+ When a property has declared accessors for getting and setting, its values are
257
257
added to the model. Just like using ` attr_accessor ` , you can over-ride these
258
258
with your own custom accessors. It's a simple matter of adding an accessor after
259
259
the property declaration. Reopening the Post class....
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ The idea is that you aren't going to load a set of objects and use only an
224
224
association in just one of them. This should hold up pretty well against a 99%
225
225
rule.
226
226
227
- When you don't want it to work like this, just load the item you want in it's
227
+ When you don't want it to work like this, just load the item you want in its
228
228
own set. So DataMapper thinks ahead. We like to call it "performant by default".
229
229
* This feature single-handedly wipes out the "N+1 Query Problem".*
230
230
You can’t perform that action at this time.
0 commit comments