allow for a type attribute

* "namespace" json_api specific type method
This commit is contained in:
Josh Lane
2015-08-04 12:25:18 -07:00
parent 4af98852b8
commit 033ce8e88d
3 changed files with 21 additions and 6 deletions

View File

@@ -134,7 +134,7 @@ module ActiveModel
object.id if object
end
def type
def json_api_type
object.class.model_name.plural
end