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.
- checksums.yaml +4 -4
- data/lib/active_mappers.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07fb31dcdcfe6189b2d63d268afb2cfb89f1c4c73a8cce840f7f988206a9b092
|
4
|
+
data.tar.gz: 721e0d10cce975e0534671a37e6a3f28d614b2bda58678d27059db57ec66a3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d99b4ed8d2ba3109cc09a1713738580928361b75173104da290fcb1595142ba79794b100d27817174fc0d853bc54d9931dde26c921c365dec61daee68be65e
|
7
|
+
data.tar.gz: 299e4bae6b91d2cbb1d35b42faa2dc93c0d92862a24ae10bff4afb3767ae91095f2fd78b10754a000a3a2af1c17435c48f1fa61821d50a9899bbcc40eafa3137
|
data/lib/active_mappers.rb
CHANGED
@@ -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('
|
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) }
|