lib/restpack_serializer/serializable.rb in restpack_serializer-0.5.0 vs lib/restpack_serializer/serializable.rb in restpack_serializer-0.5.1

- old
+ new

@@ -110,8 +110,15 @@ def key (@key || self.model_class.send(:table_name)).to_sym end + def singular_key + self.key.to_s.singularize.to_sym + end + + def plural_key + self.key + end end end end