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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ef5ced71b4cc21708dd1746f36d8a19473d00f
4
- data.tar.gz: c61284137ed0b101d4092b27d4ec3fe1132cc3d3
3
+ metadata.gz: d45d23ac0f04c5efbf788022aade5462a6a410a1
4
+ data.tar.gz: 037b8bbfb81b0e627ad9e799b4cf853c2954c862
5
5
  SHA512:
6
- metadata.gz: 1033657dc63301ca2ceb8878d89c181312736b3c0c68ee9cad1c721ce9055a41f96c9da1ef12d732209e9e8614870f55a3813c34f7715d1f72045890c11413b2
7
- data.tar.gz: 96a935d584df5e446b1d7e5e0ee5671b37f5be7b301aa2859ccd5868d150ee302330936328b72e7d1c2bee5818329f378905de338121eb2bed22d26ef0b64fec
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
@@ -1,3 +1,3 @@
1
1
  module SkinnyControllers
2
- VERSION = '0.8.6'.freeze
2
+ VERSION = '0.8.7'.freeze
3
3
  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.6
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-07-04 00:00:00.000000000 Z
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.5.1
234
+ rubygems_version: 2.6.6
235
235
  signing_key:
236
236
  specification_version: 4
237
- summary: SkinnyControllers-0.8.6
237
+ summary: SkinnyControllers-0.8.7
238
238
  test_files: []
239
239
  has_rdoc: