activerecord_sqlserver_crm 4.2.11 → 4.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37cc057428329e3fb1237f1865b2467eb345c1ab
4
- data.tar.gz: c8543c1bd36bc079c045864c922267225279538f
3
+ metadata.gz: c2f6c1ccfa5f5728b99b40b63e43dfb197ca9b24
4
+ data.tar.gz: 7abedefce066d24e2686ff1cd6bcdfef56549350
5
5
  SHA512:
6
- metadata.gz: 41768daa59810f26010bc8841078e4b7f6512e560a10f7aab88dd338dcbb2fca3db33a4d3f1193311749d7fa30d33c73a0bf6819d173dab7875b8faaad48015f
7
- data.tar.gz: 19290167d84ba6f6448826a771f77c0990b1e88ec5fbf6c71e353af223262c718af14a0067cab73b2acd027bf1a233adea2e17a9139c9cdf2722a1a293e1d314
6
+ metadata.gz: 775f82995015e0d621161dabccdaf5f91f6f882d3350c881c27a31e609e15b5b1668f6d4c3825175daa8773eb8189fbac9a7540fcd9c9e8aeefd0a1a09c59cee
7
+ data.tar.gz: a6996f95edea9b6207ec994c730c6cada87dc10e83a5f1a82142e297f496e2f84ded0e5cd952de231718f4d71063efc857a824601d0a30c28844a22a45f448a2
@@ -112,8 +112,12 @@ module ActiveRecordExtension
112
112
  end
113
113
  end
114
114
 
115
+ def odata_config
116
+ @odata_config ||= YAML.load_file(Rails.root.join('config', 'odata.yml'))
117
+ end
118
+
115
119
  # You can switch OData off by setting param: 'odata_enabled' to false
116
- unless ODATA_CONFIG[Rails.env]['odata_enabled'] == false
120
+ unless odata_config[Rails.env]['odata_enabled'] == false
117
121
  # include the extension
118
122
  ActiveRecord::Base.send(:include, ActiveRecordExtension)
119
123
 
@@ -1,3 +1,3 @@
1
1
  module ActiverecordSqlserverCrm
2
- VERSION = "4.2.11"
2
+ VERSION = "4.2.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_sqlserver_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.11
4
+ version: 4.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolf Lawrenz
@@ -150,7 +150,6 @@ files:
150
150
  - app/models/crm/uom.rb
151
151
  - app/models/crm/uom_schedule.rb
152
152
  - app/models/crm/user.rb
153
- - config/initializers/01_constants.rb
154
153
  - config/initializers/extensions.rb
155
154
  - config/initializers/schema_statements.rb
156
155
  - config/routes.rb
@@ -1 +0,0 @@
1
- ODATA_CONFIG = YAML.load_file(Rails.root.join('config', 'odata.yml'))