chusaku 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ea21f48d0e23b8f39bcf7904961102f8e18af39f88750b2cc6fb18e10911207
4
- data.tar.gz: 4e587c49d1291555e8c083d68dc454ea918bf58dad233ab959f34ddef068cb5e
3
+ metadata.gz: ebe96ad3b3baead323c9ca16b7b305294c50cc7c84df1910323ea7e68c88bd23
4
+ data.tar.gz: 6d5323633e69d99b98eee5aae7b343f9f1d4e903eb33267a1d7944b612196aea
5
5
  SHA512:
6
- metadata.gz: eb3b5d1f65bb39f7b8488828cc3ea3eb16a3e988dd4edd3fa9a4ce8f19bb625469f506f760384857e662643e37ac3eac005e7d9f11776dc487fc4b031c29518a
7
- data.tar.gz: e4cbb774bb3145c82e4caa5d87c16993f6371a72d5e5a3b1ea867e18c33902270df2c15d4616acbbccf27861374d0fb45eac330e38ad8c1d4a21093218eb865b
6
+ metadata.gz: 49dd613f288f3e922c419239839fcca814bede0cd6ae8b02f0884c5bdbb2a8ec7f35e7b24c53018d5ae610be9f53664821ef3c4dd0913b371ffbd97cb5cc2e6a
7
+ data.tar.gz: d07d59bf8879e23d30f40e86782651822e5237cc6b7361de562a94cc386120a2799d1d9d3eed094a4766194d2de940534ff2a0ac849fde70fda7389454e27810
@@ -195,7 +195,12 @@ module Chusaku
195
195
  action = defaults.delete(:action)
196
196
 
197
197
  controller_name = ActiveSupport::Inflector.camelize(ActiveSupport::Inflector.underscore(controller))
198
- controller_class = controller ? ActiveSupport::Inflector.constantize("#{controller_name}Controller") : nil
198
+ controller_class =
199
+ begin
200
+ controller ? ActiveSupport::Inflector.constantize("#{controller_name}Controller") : nil
201
+ rescue NameError
202
+ nil
203
+ end
199
204
  action_method_name = action&.to_sym
200
205
  source_path =
201
206
  if !action_method_name.nil? && controller_class&.method_defined?(action_method_name)
@@ -1,3 +1,3 @@
1
1
  module Chusaku
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: chusaku
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
  - Nishiki Liu