mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fixed few typos
This commit is contained in:
parent
afed6dcd4a
commit
75a72b5cc9
@ -73,7 +73,7 @@ module ActiveModel
|
|||||||
class_attribute :perform_caching
|
class_attribute :perform_caching
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
# set peform caching like root
|
# set perform caching like root
|
||||||
def cached(value = true)
|
def cached(value = true)
|
||||||
self.perform_caching = value
|
self.perform_caching = value
|
||||||
end
|
end
|
||||||
|
|||||||
@ -7,7 +7,7 @@ class <%= class_name %>Serializer < <%= parent_class_name %>
|
|||||||
<% if generate_id_method %>
|
<% if generate_id_method %>
|
||||||
|
|
||||||
# due to the difference between 1.8 and 1.9 with respect to #id and
|
# due to the difference between 1.8 and 1.9 with respect to #id and
|
||||||
# #object_id, we reccomend that if you wish to serialize id columns, you
|
# #object_id, we recommend that if you wish to serialize id columns, you
|
||||||
# do this. Feel free to remove this if you don't feel that it's appropriate.
|
# do this. Feel free to remove this if you don't feel that it's appropriate.
|
||||||
#
|
#
|
||||||
# For more: https://github.com/rails-api/active_model_serializers/issues/127
|
# For more: https://github.com/rails-api/active_model_serializers/issues/127
|
||||||
|
|||||||
@ -376,7 +376,7 @@ class ResponderTest < ActionController::TestCase
|
|||||||
assert_equal '{"awesome":[]}', @response.body
|
assert_equal '{"awesome":[]}', @response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_render_json_empty_arry_with_array_serializer_root_false
|
def test_render_json_empty_array_with_array_serializer_root_false
|
||||||
ActiveModel::ArraySerializer.root = false
|
ActiveModel::ArraySerializer.root = false
|
||||||
get :render_json_empty_array
|
get :render_json_empty_array
|
||||||
assert_equal '[]', @response.body
|
assert_equal '[]', @response.body
|
||||||
|
|||||||
@ -379,7 +379,7 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
assert_equal '{"awesome":[]}', @response.body
|
assert_equal '{"awesome":[]}', @response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_render_json_empty_arry_with_array_serializer_root_false
|
def test_render_json_empty_array_with_array_serializer_root_false
|
||||||
ActiveModel::ArraySerializer.root = false
|
ActiveModel::ArraySerializer.root = false
|
||||||
get :render_json_empty_array
|
get :render_json_empty_array
|
||||||
assert_equal '[]', @response.body
|
assert_equal '[]', @response.body
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user