skinny_controllers 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/skinny_controllers/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45d23ac0f04c5efbf788022aade5462a6a410a1
|
4
|
+
data.tar.gz: 037b8bbfb81b0e627ad9e799b4cf853c2954c862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9a6efa65736d0ee7006dcfd79955f3e1aae5d7642db7813b4d61414aaa1672090997546a4f8fe6d5b3540c584d611006d331d80dcf75d3d51d1e1cbbcebb2b
|
7
|
+
data.tar.gz: b0aeb2fc909bf923bb5cb00e19b625482b314a2bb2ed097b42f83c58a7a1f8397b06b633704e84fd456cb9ed7bac99abc4ac686a04b502ab4f3717ea50cc8e1c
|
data/README.md
CHANGED
@@ -212,10 +212,9 @@ To achieve default functionality, this operation *may* be defined -- though, it
|
|
212
212
|
module UserOperations
|
213
213
|
class Create < SkinnyControllers::Operation::Base
|
214
214
|
def run
|
215
|
-
return unless allowed?
|
216
215
|
@model = model_class.new(model_params)
|
217
|
-
@model.save
|
218
|
-
@model # or just `model`
|
216
|
+
@model.save if allowed?
|
217
|
+
return @model # or just `model`
|
219
218
|
end
|
220
219
|
end
|
221
220
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skinny_controllers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- L. Preston Sego III
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -231,9 +231,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
233
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.6.6
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
|
-
summary: SkinnyControllers-0.8.
|
237
|
+
summary: SkinnyControllers-0.8.7
|
238
238
|
test_files: []
|
239
239
|
has_rdoc:
|