erp_forms 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/dynamic_form.rb +1 -1
- data/lib/erp_forms/engine.rb +3 -4
- data/lib/erp_forms/version.rb +1 -1
- metadata +10 -31
- data/spec/dummy/db/schema.rb +0 -858
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +0 -629
data/app/models/dynamic_form.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class DynamicForm < ActiveRecord::Base
|
2
2
|
belongs_to :dynamic_form_model
|
3
3
|
|
4
|
-
validates_uniqueness_of :internal_identifier, :scope => :model_name
|
4
|
+
validates_uniqueness_of :internal_identifier, :scope => :model_name, :case_sensitive => false
|
5
5
|
|
6
6
|
def self.class_exists?(class_name)
|
7
7
|
result = nil
|
data/lib/erp_forms/engine.rb
CHANGED
@@ -13,11 +13,10 @@ module ErpForms
|
|
13
13
|
include ErpForms::Extensions::ActiveRecord::HasDynamicForms
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
config
|
18
|
-
ErpBaseErpSvcs.register_compass_ae_engine(engine)
|
19
|
-
::ErpApp::Widgets::Loader.load_compass_ae_widgets(engine)
|
16
|
+
ErpBaseErpSvcs.register_as_compass_ae_engine(config, self)
|
17
|
+
::ErpApp::Widgets::Loader.load_compass_ae_widgets(config, self)
|
20
18
|
|
19
|
+
config.to_prepare do
|
21
20
|
#dynamic_attributes patch
|
22
21
|
require "erp_forms/dynamic_attributes_patch"
|
23
22
|
end
|
data/lib/erp_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,27 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dynamic_attributes
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70149047271220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - '='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.2.0
|
24
|
+
version_requirements: *70149047271220
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: erp_app
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70149047270420 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ~>
|
@@ -37,15 +32,10 @@ dependencies:
|
|
37
32
|
version: '3.0'
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '3.0'
|
35
|
+
version_requirements: *70149047270420
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: erp_dev_svcs
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70149047269760 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
@@ -53,12 +43,7 @@ dependencies:
|
|
53
43
|
version: '3.0'
|
54
44
|
type: :development
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
46
|
+
version_requirements: *70149047269760
|
62
47
|
description: ErpForms provides dynamic form capability to existing and dynamic models.
|
63
48
|
Form Builder coming soon.
|
64
49
|
email:
|
@@ -135,9 +120,6 @@ files:
|
|
135
120
|
- spec/dummy/config/locales/en.yml
|
136
121
|
- spec/dummy/config/routes.rb
|
137
122
|
- spec/dummy/config.ru
|
138
|
-
- spec/dummy/db/schema.rb
|
139
|
-
- spec/dummy/db/spec.sqlite3
|
140
|
-
- spec/dummy/log/spec.log
|
141
123
|
- spec/dummy/public/404.html
|
142
124
|
- spec/dummy/public/422.html
|
143
125
|
- spec/dummy/public/500.html
|
@@ -169,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
151
|
version: '0'
|
170
152
|
requirements: []
|
171
153
|
rubyforge_project:
|
172
|
-
rubygems_version: 1.8.
|
154
|
+
rubygems_version: 1.8.11
|
173
155
|
signing_key:
|
174
156
|
specification_version: 3
|
175
157
|
summary: ErpForms provides dynamic form capability to existing and dynamic models.
|
@@ -193,9 +175,6 @@ test_files:
|
|
193
175
|
- spec/dummy/config/locales/en.yml
|
194
176
|
- spec/dummy/config/routes.rb
|
195
177
|
- spec/dummy/config.ru
|
196
|
-
- spec/dummy/db/schema.rb
|
197
|
-
- spec/dummy/db/spec.sqlite3
|
198
|
-
- spec/dummy/log/spec.log
|
199
178
|
- spec/dummy/public/404.html
|
200
179
|
- spec/dummy/public/422.html
|
201
180
|
- spec/dummy/public/500.html
|