graphiti 1.0.alpha.26 → 1.0.beta.2

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
  SHA1:
3
- metadata.gz: cc547267adde832aa6910fc38c5ee48af7f38ab5
4
- data.tar.gz: 9b3b27ba180c2c1d6e1b599ed7302d5ca9b6dd54
3
+ metadata.gz: 6ca2321a8344025294b75fc03fdb42ee20481aed
4
+ data.tar.gz: 67f0452ff98f84d8e6af5c7226dd82c293a596f4
5
5
  SHA512:
6
- metadata.gz: 92f560e227cb8084807d503b85190f631daf696d22e4c649041573ad18c4553350b5525ab52f3d3bcf4270094fc5cd1f2141409de73609140c0c3bb651130b4a
7
- data.tar.gz: fb1eb584414a97b7a3afb65fb5cf397a6504868c160e0dd4cd5d844bd9249af3047de4d1702888e787a8ff2452e2f66cde2367890e3c944c6311268181c1ffe1
6
+ metadata.gz: 61813ec5f5dfe12cf5c02f78db7ee3cdbef5e2ede47eb030ef0621b1f1bd0a17df890b4d5f8498e6be6653d67449e756945bc9eff747127b5fce1a3c26a69144
7
+ data.tar.gz: 40085d3ec88d517a8c0ed4623acfd0336aa6e44e5bba2a0f619d510d8778a0caf0f1afec1e9349f4f5798f3621a4bca88f5f2c3bf0762a12548087432b89af22
@@ -52,6 +52,7 @@ module Graphiti
52
52
  def generate_application_resource
53
53
  to = File.join('app/resources', class_path, "application_resource.rb")
54
54
  template('application_resource.rb.erb', to)
55
+ require "#{::Rails.root}/#{to}"
55
56
  end
56
57
 
57
58
  def application_resource_defined?
@@ -82,6 +83,7 @@ module Graphiti
82
83
  def generate_resource
83
84
  to = File.join('app/resources', class_path, "#{file_name}_resource.rb")
84
85
  template('resource.rb.erb', to)
86
+ require "#{::Rails.root}/#{to}"
85
87
  end
86
88
 
87
89
  def model_klass
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.alpha.26"
2
+ VERSION = "1.0.beta.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha.26
4
+ version: 1.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-15 00:00:00.000000000 Z
11
+ date: 2018-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable