Skip to content

Commit de0e745

Browse files
committed
Spelling fixes
1 parent 6a25bee commit de0e745

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/jsonapi/acts_as_resource_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def render_response_document
243243
if response_document.has_errors?
244244
render_options[:json] = content
245245
else
246-
# Bypasing ActiveSupport allows us to use CompiledJson objects for cached response fragments
246+
# Bypassing ActiveSupport allows us to use CompiledJson objects for cached response fragments
247247
render_options[:body] = JSON.generate(content)
248248

249249
render_options[:location] = content['data']['links']['self'] if (response_document.status == 201 && content[:data].class != Array)

lib/jsonapi/request_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def setup_update_action(params, resource_klass)
201201
fail JSONAPI::Exceptions::MissingKey.new(error_object_overrides) if data[:id].nil?
202202

203203
resource_id = data.require(:id)
204-
# Singlton resources may not have the ID set in the URL
204+
# Singleton resources may not have the ID set in the URL
205205
if key
206206
fail JSONAPI::Exceptions::KeyNotIncludedInURL.new(resource_id) if key.to_s != resource_id.to_s
207207
end

lib/jsonapi/resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,12 @@ def verify_keys(keys, context = nil)
739739
end
740740
end
741741

742-
# Either add a custom :verify labmda or override verify_custom_filter to allow for custom filters
742+
# Either add a custom :verify lambda or override verify_custom_filter to allow for custom filters
743743
def verify_custom_filter(filter, value, _context = nil)
744744
[filter, value]
745745
end
746746

747-
# Either add a custom :verify labmda or override verify_relationship_filter to allow for custom
747+
# Either add a custom :verify lambda or override verify_relationship_filter to allow for custom
748748
# relationship logic, such as uuids, multiple keys or permission checks on keys
749749
def verify_relationship_filter(filter, raw, _context = nil)
750750
[filter, raw]

0 commit comments

Comments
 (0)