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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2f6c1ccfa5f5728b99b40b63e43dfb197ca9b24
|
|
4
|
+
data.tar.gz: 7abedefce066d24e2686ff1cd6bcdfef56549350
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
120
|
+
unless odata_config[Rails.env]['odata_enabled'] == false
|
|
117
121
|
# include the extension
|
|
118
122
|
ActiveRecord::Base.send(:include, ActiveRecordExtension)
|
|
119
123
|
|
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.
|
|
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'))
|