Fixed few typos

This commit is contained in:
Prathamesh Sonpatki 2013-03-26 20:29:35 +05:30
parent afed6dcd4a
commit 75a72b5cc9
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -7,9 +7,9 @@ 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
def id def id
object.read_attribute_for_serialization(:id) object.read_attribute_for_serialization(:id)

View File

@ -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

View File

@ -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