cant_cant_cant 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: b13016065cc19540042186a8222059d687e8e2d9
4
- data.tar.gz: e2075963089b1d20b0d8343121c9cb67f075d73e
3
+ metadata.gz: 4adf904c78b2cc8ea403ea7e7df7cbff3dbec668
4
+ data.tar.gz: 01ed38ddede7265e74b477d525417efa800ee65e
5
5
  SHA512:
6
- metadata.gz: e33bdbbbdbea94164a4b13c67766c0c0c4c07f39305c5ba44125b9cee336e7ca6cb7abbbe911cfeee1084f81ee8b2f6d298ca6d44fd4bfa3d2b51ce8b81b5dce
7
- data.tar.gz: 3c795eb5ff9325ba472c3e53ef4f6a5e71229815f7481f3c983b09b9ae6fc7842d5d02bac62a9dcbcc6b13d19150f41700e6f0f96e23ac0f5fecf23ff87e2f1c
6
+ metadata.gz: 60363f66ef7d7340969e2f2f29d231bcb5a759be496fac18f3dc6fbd055fc5e12263263820ded74c00de1b1e54d17cbde786c294ea7df85cfda3df46e3618135
7
+ data.tar.gz: a157035d8114eb2759d5650c88435d4b13341f61403601a6799969a5828256525dd1a38977f371db71ed583bda7f46a40ee8c7004ce48f22015641b1197e741f
@@ -45,7 +45,7 @@ module CantCantCant
45
45
  controller, action = param.split('#')
46
46
  raise if controller.blank? || action.blank?
47
47
 
48
- controller = (controller.classify + 'Controller').constantize
48
+ controller = (controller + '_controller').classify.constantize
49
49
  raise unless action.in? controller.instance_methods(false).map(&:to_s)
50
50
 
51
51
  [controller, action]
@@ -1,4 +1,4 @@
1
- # This configuration file is initialized using `rails g cantcantcant:install`
1
+ # This configuration file is initialized using `rails g cant_cant_cant:install`
2
2
 
3
3
  # The default permission is generated by scanning all non-internal routes
4
4
  user: &default_permissions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cant_cant_cant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shou Ya