active_mappers 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/active_mappers.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3698b3e1164bdab4bfbdf51ba23ccb631343b5b73baf144ee32d1622b865473e
4
- data.tar.gz: 3ad57ddc57e35f5416654da57eb42529cba0bad53fd5ab373becbcc63513866a
3
+ metadata.gz: 07fb31dcdcfe6189b2d63d268afb2cfb89f1c4c73a8cce840f7f988206a9b092
4
+ data.tar.gz: 721e0d10cce975e0534671a37e6a3f28d614b2bda58678d27059db57ec66a3d2
5
5
  SHA512:
6
- metadata.gz: 0a96eb16b3721b917a21997e5989ea6fb7bc412958671eddb537cd730a06e85db1b9773f19e9e6a8b4513bc16ac1777d300b58ead8d124de5003fd5d7a66d45a
7
- data.tar.gz: 66dc63518b8c1bca6df28b4f39e5c7ecb46b8e7e0a59554abd6a900529534ea180b1927ad777e10b9a29115b4ba9686bcbea9cb5f14b0883d82ecb0b3691d22b
6
+ metadata.gz: 52d99b4ed8d2ba3109cc09a1713738580928361b75173104da290fcb1595142ba79794b100d27817174fc0d853bc54d9931dde26c921c365dec61daee68be65e
7
+ data.tar.gz: 299e4bae6b91d2cbb1d35b42faa2dc93c0d92862a24ae10bff4afb3767ae91095f2fd78b10754a000a3a2af1c17435c48f1fa61821d50a9899bbcc40eafa3137
@@ -68,7 +68,7 @@ module ActiveMappers
68
68
 
69
69
  def self.render_with_root(args, options = {})
70
70
  resource_name = options[:root]
71
- resource_name ||= self.name.gsub('Mapper', '').tableize.gsub('/', '_').camelize(:lower)
71
+ resource_name ||= self.name.gsub('Mapper', '').tableize.camelize(:lower).gsub('::','/')
72
72
 
73
73
  if args.respond_to?(:each)
74
74
  { resource_name.to_s.pluralize.to_sym => all(args) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mappers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Villeneuve