maquina 0.2.4 → 0.2.5

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
  SHA256:
3
- metadata.gz: 364438ad137141326a74edaa58326851f341adc1f8acb322dd8a97cb5978a083
4
- data.tar.gz: 970677e48f9feb4134fc488a83026a50c73d7db3ce95b840fde885240161aa4b
3
+ metadata.gz: 31ab94ae292dc94ebccc7ad33cd520b29a8bd945620f4d698239a6fec7a686a3
4
+ data.tar.gz: ee06ac7e22a088a2386cf3ca2d6f83aa3d4cff47102c22efaa495b464ac2cf97
5
5
  SHA512:
6
- metadata.gz: ed1dca346e40c2fe3ae250c83fa614865ba3f3bc8a6a2889aae2b455ac330e779ecc00132996be2b1512b7f1531a91ef0098d2c94b636ba0af9fe3b0bcd86dcf
7
- data.tar.gz: df0df2c766a02f9395b98c3e9a127e8e7fc8b29ba88df23c3041cde9de50cf8295d1243d012c1c8cea8e7def0c70b6e55ac34d560802d7392cebac88b0989616
6
+ metadata.gz: 53eb9e8dee812c60f8c33c770dc8c0a6ad4543f55d29be3c3aa2613f166578392bab79b446e119e135f6a90f846d85ef84d39b23a820ae6cd80e3bcdf00939e7
7
+ data.tar.gz: c62d7bec012895f8feca619c6c753e97e4cf27d4fcb3e1f58e79f1d14d403efd55ec4257fdda5d7f70cadc80b8c6acfef84f136fa3b93d902b1f56a5f6e2cb0e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maquina (0.2.4)
4
+ maquina (0.2.5)
5
5
  action_policy (~> 0.6.3)
6
6
  bcrypt (~> 3.1.7)
7
7
  importmap-rails (~> 1.2.0)
@@ -16,7 +16,6 @@ module Maquina
16
16
  end
17
17
 
18
18
  @status = @resource.errors.empty? ? :created : :unprocessable_entity
19
- Rails.logger.debug "CREATE validation: #{@resource.errors.inspect}" if status == :unprocessable_entity
20
19
  response.status = @status
21
20
  set_flash_message(@status)
22
21
 
@@ -7,7 +7,7 @@ module Maquina
7
7
  included do
8
8
  def edit(&block)
9
9
  @resource ||= begin
10
- scope = resource_class
10
+ scope = resource_class.all
11
11
  scope = authorized_scope(scope) if policy_class.present?
12
12
  scope = yield(scope) if block.present?
13
13
 
@@ -7,7 +7,7 @@ module Maquina
7
7
  included do
8
8
  def update(&block)
9
9
  @resource ||= begin
10
- scope = resource_class
10
+ scope = resource_class.all
11
11
  scope = authorized_scope(scope) if policy_class.present?
12
12
 
13
13
  resource = scope.find_by!(find_by_param => params[:id])
@@ -20,7 +20,6 @@ module Maquina
20
20
  saved = @resource.update(resource_secure_params)
21
21
 
22
22
  status = saved ? :accepted : :unprocessable_entity
23
- Rails.logger.debug "UPDATE validation: #{@resource.errors.inspect}" if status == :unprocessable_entity
24
23
  response.status = status
25
24
  set_flash_message(status)
26
25
 
@@ -1,3 +1,3 @@
1
1
  module Maquina
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maquina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Alberto Chávez