meta-record 1.0.13 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2a459ae8bfea29eeb256c9da188c13d48d29ef77c402dc05f5a54913a05d9bf
4
- data.tar.gz: f5ba00fadc0cc603b70b2c9d1a13a4ae5fe96e82764d3dbc0876cbaef6c78237
3
+ metadata.gz: 5d3e37fd89be58f819847b4eaa49b18206fd235b84a80029e1dfa44a057d4d22
4
+ data.tar.gz: 50078c7348e02d15f663b6db14e56e03708b8df1c915369ac1a307bf8ce774f4
5
5
  SHA512:
6
- metadata.gz: a8a8814fe47220c18fe3e82cae38c0a2c8da2a19797e93ef83ba7b0a16da438a22ecb21d0faf7a26a61181ce9935ce3f9c9073db0ff4e8a29922734f3ece0969
7
- data.tar.gz: 82a756725c203990ff958857ca01a9c5020d2275d7fa3c2af9fc6c13b874cdebeb9e3bc6c1c81bdab14800aa398164668a699fdb90830469ce874da2425178f7
6
+ metadata.gz: 9c4ef7b1b0c065d983e7677f549042c4883a5f6ea794acc83ce06cdce2f19d385ca56393e5eaf5966872f4295f7bbacb458d1983cc454898ae6d7f7911b5f962
7
+ data.tar.gz: 8510f243fb442bbdc1525eb0efe81cfb42fb68f5ea90a63aba5e391638fc20b80a2ab66d840b0d3c3b11475c35f3c991741f5af6e807fce5a1cb201e55edf31f
@@ -68,6 +68,7 @@ class CometDataGenerator < CrailsDataGenerator
68
68
  #ifdef #{client_define}
69
69
  # include <comet/mvc/model.hpp>
70
70
  # include <comet/mvc/archive_model.hpp>
71
+ # include <comet/mvc/json_model.hpp>
71
72
  # include <comet/promise.hpp>
72
73
  # ifndef #{client_super_class}
73
74
  # define #{client_super_class} Comet::JsonModel<>
@@ -91,8 +91,8 @@ class CrailsDestroyGenerator < GeneratorBase
91
91
  end
92
92
 
93
93
  def one_to_many relation
94
- _append "typedef odb::query<::#{relation[:class]}> Query;"
95
- _append "odb::result<::#{relation[:class]}> models;"
94
+ _append "typedef odb::query<#{relation[:class]}> Query;"
95
+ _append "odb::result<#{relation[:class]}> models;"
96
96
  _append "Query query;\n"
97
97
 
98
98
  if relation[:options][:joined] != false
@@ -100,8 +100,8 @@ class CrailsDestroyGenerator < GeneratorBase
100
100
  else
101
101
  _append "query = Query::#{relation[:field]}_id == self_id;"
102
102
  end
103
- _append "database.find<::#{relation[:class]}>(models, query);"
104
- _append "for (auto model : Crails::Odb::to_vector<::#{relation[:class]}>(models))"
103
+ _append "database.find<#{relation[:class]}>(models, query);"
104
+ _append "for (auto model : Crails::Odb::to_vector<#{relation[:class]}>(models))"
105
105
  if relation[:options][:dependent] == :destroy
106
106
  _append " database.destroy(model);"
107
107
  elsif relation[:options][:dependent] == :unlink
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Martin Moro