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.
@@ -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
@@ -13,11 +13,10 @@ module ErpForms
13
13
  include ErpForms::Extensions::ActiveRecord::HasDynamicForms
14
14
  end
15
15
 
16
- engine = self
17
- config.to_prepare do
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
@@ -2,7 +2,7 @@ module ErpForms
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
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.5
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: 2012-10-18 00:00:00.000000000 Z
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: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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.23
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