croods 0.2.4 → 0.2.5

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: 59599cc31e9e3b596fe761b140365fb2efcd9c319dc7e60b94c491ad94f9cee3
4
- data.tar.gz: 0b551e14af91d32e9f69c44a0a23a40f235b8929127b28cce5fc96dcd077c385
3
+ metadata.gz: b0900ac5dbe8afc94b575ee6e36071c7ca3d153c99e3fbd741e09824fe2d4334
4
+ data.tar.gz: 6d2e2dd3fa58485c3bdf64c4f78615505cb9197a41efa3e362b6f15b5a807369
5
5
  SHA512:
6
- metadata.gz: 25a199ab073a4fd7156fb97cf4628a6033e49269df3dc83ed34647b2411897f0bba5658a22cbd40d0590938b9d9059739d66021efc39ee62a6eb5b6b6bda10e9
7
- data.tar.gz: 16a87c71799fd7f0cf5dd05ad3a16d9566918ae85074a1e719f9e085b8c25b7761bb09b3a3b3a53ce3c41be0b0adc696ec6c0f76d1329c37700c63785d5e3566
6
+ metadata.gz: 50b61038f5c2fa00e737f620ae92d3a38aa2ab1128005fe53202bce881a47c673f0fc20a4d1968d4dafab4431a24ca41d13c34680f758aaf6e1c0d3a6566baa1
7
+ data.tar.gz: 5fe444a426181006daff456b818201a647f1dec094f55c7627bcee5e47f5cd84a0a7d7f63dc7cbccf161188c2fb52fa8549d2fa2467eca29ac459c617281ec80
@@ -14,7 +14,7 @@ module Croods
14
14
  def tenant_model
15
15
  return unless Croods.multi_tenancy?
16
16
 
17
- Croods.multi_tenancy_by.to_s.titleize.constantize
17
+ Croods.multi_tenancy_by.to_s.camelize.constantize
18
18
  end
19
19
 
20
20
  def header_tenant
@@ -30,7 +30,7 @@ module Croods
30
30
  end
31
31
 
32
32
  def action_module(name)
33
- "Croods::Resource::JsonSchema::Links::#{name.to_s.titleize}"
33
+ "Croods::Resource::JsonSchema::Links::#{name.to_s.camelize}"
34
34
  .constantize
35
35
  end
36
36
  end
@@ -26,7 +26,7 @@ module Croods
26
26
  end
27
27
 
28
28
  def policy_scope_name(action)
29
- "#{model_name}#{action.to_s.titleize}Scope"
29
+ "#{model_name}#{action.to_s.camelize}Scope"
30
30
  end
31
31
 
32
32
  def create_policy!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Croods
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: croods
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
  - Daniel Weinmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-06 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: committee