README.md in embedson-1.0.1 vs README.md in embedson-1.0.2
- old
+ new
@@ -130,30 +130,31 @@
```
## Known issues
- Placing ```initialize``` method after ```embedded_in``` and using ```Emb.new(parent: parent)```
-This examples will work:
+These examples will work:
+
```RUBY
class Emb
extend Embedson::Model
-
- def initialize(attributes = {})
+
+ def initialize(attributes = {})
# do your work here
end
embedded_in :parent
end
-```
+```
```RUBY
class Emb
extend Embedson::Model
embedded_in :parent
-
+
def initialize(attributes = {})
self.parent = attributes[:parent]
# do your work here
end
end
@@ -163,11 +164,11 @@
```RUBY
class Emb
extend Embedson::Model
embedded_in :parent
-
- def initialize(attributes = {})
+
+ def initialize(attributes = {})
# if you forget about assigning parent
# do your work here
end
end