lib/jsonapi/link_builder.rb in jsonapi-resources-0.6.2 vs lib/jsonapi/link_builder.rb in jsonapi-resources-0.7.0
- old
+ new
@@ -114,21 +114,21 @@
end
def regular_primary_resources_path
[
formatted_module_path_from_class(primary_resource_klass),
- route_formatter.format(primary_resource_klass._type.to_s),
+ format_route(primary_resource_klass._type.to_s),
].join
end
def regular_primary_resources_url
"#{ base_url }#{ regular_primary_resources_path }"
end
def regular_resource_path(source)
[
formatted_module_path_from_class(source.class),
- route_formatter.format(source.class._type.to_s),
+ format_route(source.class._type.to_s),
"/#{ source.id }",
].join
end
def regular_resource_url(source)