simple_action 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTBlN2NlY2RjZTcyZmExZTgzZTM2Y2Y5NDFhOTRhYmNmNzE2OGM0Mg==
4
+ MzZmODY1MWQ3YWZiNDk3N2E2NGU4NjgxZDA0YWEwY2JhNThlNDQ3Yg==
5
5
  data.tar.gz: !binary |-
6
- NjFhNzBjODQwNWZjZTA4YTRhNGJlYjI1MjlkYWI0ZDNkNzlmMzNmYw==
6
+ YWZmZTAxNTIwMTFiZTkxNjEwMjc1MjI5ZWMzNGUwNjY0MDA1NTYxOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjY3ZmJmNjE4NjQ4N2NhODIwYzA1ZWNhOThmOTlmNmU1NGQ2Mjk2NTlkMmRk
10
- MjQzZGQ0MzUxNWZkZGMwNTMzMDEzNDlhNDZlOWZkOTQ2YmQ0NTc5NzUzNDgz
11
- MzdkYzExYjgzYjc0YmYzMzhmMTM1MGRiNzVlYjNmODZhMDZkOTE=
9
+ NTgwMzliNDRjYTZkNTJmNjQ5YmY5NTYwNmIwNWZlMmNhY2RkYjg2ODRiMWE0
10
+ Y2VjYjhiZGZjMDFlMWRjZDkyNDlmZGM4NjgxNDM4ZmNkOTZiYjI4ZDgzNTVi
11
+ YmI5MGUwMWFhYTc5Mjk5Nzk2N2IwNzlhNzBhZTRmNDc2ZTdhNWU=
12
12
  data.tar.gz: !binary |-
13
- NTRlZDNkZThhMzNlYzk3YTk2YjJmZjJmZjlmNTQxNDAyZWVmMDA2ZGUyMzdl
14
- ZjI3YTJiZmI3NWEzNjg3YTdiNjkzNDhmZjhkMTFhNDViNWViMmQ1MmE5YjNi
15
- MGExZjMxZWZjN2Y4YzQ0YTBlYmEzYTQyMDExZjY0N2E5NmU2ODE=
13
+ ZTg5NjljMTQwOGQ3MWU0OTE4ZDE3OGQ3MjYzM2VkYWYyNzU3OTAwM2QyOTY4
14
+ MDA1NGU4YmI1YjAzYjJiMTFhYjA2NDQ3NDIwZWQxODExYjdjZDI2YzI1ZmQy
15
+ ODhjM2ZlZDNiMjQ5MWYyOWJkOTU1MDcxODk1YTUwNmIwZDYwNWI=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_action (1.5.0)
4
+ simple_action (1.5.1)
5
5
  simple_params (>= 1.5, < 2.0)
6
6
 
7
7
  GEM
@@ -5,7 +5,11 @@ module SimpleAction
5
5
  module DelegatesToParams
6
6
  extend ActiveSupport::Concern
7
7
 
8
- class_methods do
8
+ module ClassMethods
9
+ def reflect_on_association(sym)
10
+ params_class.reflect_on_association(sym)
11
+ end
12
+
9
13
  def respond_to?(sym, include_private = false)
10
14
  pass_to_params_class?(sym) || super(sym, include_private)
11
15
  end
@@ -60,11 +64,5 @@ module SimpleAction
60
64
  def build_method?(sym)
61
65
  sym.to_s.gsub('=', '').start_with?('build_')
62
66
  end
63
-
64
- module ClassMethods
65
- def reflect_on_association(sym)
66
- params_class.reflect_on_association(sym)
67
- end
68
- end
69
67
  end
70
68
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleAction
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz