slim_form_object 0.5.5 → 0.5.11

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: 5ee5afa9445033c717f1690e2c660a6a6dd6ddbd
4
- data.tar.gz: 27d4f51e2fc779c9d31f0af19fb1b6e6ec224fda
3
+ metadata.gz: 9aac3c156999b5577d3aeacc7e7b1aab85c0f078
4
+ data.tar.gz: b9bb46f7dd071847227b84089daf01873fc017de
5
5
  SHA512:
6
- metadata.gz: a513e6f2542459d75fcc9dfa92a4822ffe246216f237466df493619786d33faee79d3853ad1c9ae5f584d54394fb2667b220a767831d621fadfc39a8e42a4839
7
- data.tar.gz: f0646b460c32d6811f59579e8661ba744d119d4d9f49fcdfbe8cf391a5d054ad74c45c0977af35f974b61451f163fdd4eb59de150afdf33fe14f2911ca7c5337
6
+ metadata.gz: 0398fef9c553f0bfe0a54fb58b6b9e7daeac4e96ece130340dd57c07ce1ec7b76b68d9f01786af7b41ad43532d2309debf00bbd241941fe9050fe78635531cd7
7
+ data.tar.gz: 18da32a05606eea30f9769daa3f2243f0638624371a6bf22749b6bc725ca0ec9a347fe0e44f996ca3868bfdc3f95fb48002898d23769add58eb8fcc02435631a
@@ -1,3 +1,3 @@
1
1
  module SlimFormObject
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.11"
3
3
  end
@@ -33,6 +33,15 @@ module SlimFormObject
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ def set_model_name(name)
38
+ @@set_name = name
39
+ class << self
40
+ def model_name
41
+ ActiveModel::Name.new(self, nil, @@set_name.to_s)
42
+ end
43
+ end
44
+ end
36
45
  end
37
46
 
38
47
  def submit
@@ -114,7 +123,6 @@ module SlimFormObject
114
123
  def exist_any_arrors_without_collections?
115
124
  keys_of_collections.each do |method_name|
116
125
  array_of_models.each do |model|
117
- self_object_of_model = method( snake(model.to_s) ).call
118
126
  name_of_model = method_name.to_s[/^(.+)_ids$/, 1]
119
127
  name_of_constant_model = name_of_model.split('_').map(&:capitalize).join
120
128
  name_of_key_error = Object.const_get(name_of_constant_model).table_name
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_form_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - woodcrust
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-21 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activerecord
14
+ name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: activerecord
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: pg
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +136,8 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- description: Automatic generation and saving of your models html attributes
139
+ description: Very simple automatic generation and saving of your models nested attributes.
140
+ For ActiveModel.
126
141
  email:
127
142
  - roboucrop@gmail.com
128
143
  executables: