drupal83 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/drupal/node.rb CHANGED
@@ -9,6 +9,11 @@ module Drupal
9
9
  property :type, String
10
10
  property :title, String
11
11
 
12
+
13
+ has n, :comments,
14
+ :child_key => [:nid],
15
+ :repository => Drupal::Repository
16
+
12
17
  before :save, :assign_vid
13
18
  after :save, :write_node_revision
14
19
 
data/lib/drupal/user.rb CHANGED
@@ -17,6 +17,10 @@ module Drupal
17
17
  has n, :nodes,
18
18
  :child_key => [:uid],
19
19
  :repository => Drupal::Repository
20
+
21
+ has n, :comments,
22
+ :child_key => [:uid],
23
+ :repository => Drupal::Repository
20
24
 
21
25
  def profile
22
26
  Drupal::Node.first :type => 'profile', :uid => uid
@@ -1,3 +1,3 @@
1
1
  module Drupal
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupal83
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: